Lightflows Technical Test

Related tags

Laravel Lightflows
Overview

Build Status Total Downloads Latest Stable Version License

Installation

  • git clone
  • composer install
  • cp .env.example .env
  • php artisan key:generate
  • setup database in .env
  • php artisan migrate --seed
  • php artisan passport:install --force
  • php artisan serve
  • The site will run localhost:8000

End Point Url

|POST | api/register |

|GET|HEAD | api/user |

|POST | api/login |

|GET|HEAD | api/phonebooks | phonebooks.index |

|POST | api/phonebooks | phonebooks.store |

|GET|HEAD | api/phonebooks/{phonebook} | phonebooks.show |

|PUT|PATCH | api/phonebooks/{phonebook} | phonebooks.update |

|DELETE | api/phonebooks/{phonebook} | phonebooks.destroy |

Support Documentation

  1. User Register

    Url : {Your_Path}/api/register

    Method - POST

    Body : row

    Data :

    {
        "name": "Admin",
        "email":"[email protected]",
        "password":"password",
        "c_password":"password"
    }
    

    The command will return the following format:

    {
        "success": true,
        "data": {
            "token": "eyJ0eXAiOiJKV1QiL.....",
            "name": "Admin"
        },
        "message": "User register successfully."
    }
    
  2. User Login

    Url : {Your_Path}/api/login

    Method - POST

    Body : row

    Data :

    {
        "email":"[email protected]",
        "password":"password"
    }
    

    The command will return the following format:

    {"success":{"token":"eyJ0eXAiOiJKV1QiL..."}}
    

Note : When you run each API please check the login , if login is available please use the token for authentication , if you do not have the token please login first in each API to receive the token and use the same token in each API with .

	Headers
	{
	"Authorization":"Bearer .$token"
	}
  1. Index

    Url : {Your_Path}/api/phonebooks

    Method - GET|HEAD

    Body : row

    Data : Null

    The command will return the following format:

    {
        "success": true,
        "data": [
            {
                "id": 1,
                "firstName": "Laurie",
                "lastName": "Kovacek",
                "email": "[email protected]",
                "mobileNumber": "09573975996",
                "phoneNumber": "+1-606-729-9793",
                "created_by": 1,
                "updated_by": 1,
                "created_at": "2021-09-03T12:54:26.000000Z",
                "updated_at": "2021-09-03T12:54:26.000000Z"
            },
            {
                ....
            }
        ],
        "message": "Phone books retrieved successfully."
    }
    
  2. Create

    Url : {Your_Path}/api/phonebooks

    Method - POST

    Body : row

    Data :

     {
         "firstName":"Parth",
         "lastName":"Patel",
         "email":"[email protected]",
         "mobileNumber":"07459169377"
     }
    

    The command will return the following format:

     {"success":true,"data":{"firstName":"Parth","lastName":"Patel","email":"[email protected]","mobileNumber":"07459169377","created_by":1,"updated_by":1,"updated_at":"2021-09-03T13:34:18.000000Z","created_at":"2021-09-03T13:34:18.000000Z","id":6},"message":"Phone book details stored successfully."}
    
  3. Read

    Url : {Your_Path}/api/phonebooks/{phonebook}

    Method - GET|HEAD

    Body : row

    Data : null

    The command will return the following format:

    {"success":true,"data":{"id":6,"firstName":"Parth","lastName":"Patel","email":"[email protected]","mobileNumber":"07459169377","phoneNumber":"+1.934.506.1355","created_by":1,"updated_by":1,"created_at":"2021-09-03T13:34:18.000000Z","updated_at":"2021-09-03T14:00:41.000000Z"},"message":"Phone book details retrieved successfully."}
    
  4. Edit

    Url : {Your_Path}/api/phonebooks/{phonebook}

    Method - PUT|PATCH

    Body : row

    Data :

     {
         "firstName":"Parth",
         "lastName":"Patel",
         "email":"[email protected]",
         "mobileNumber":"07459169377",
         "phoneNumber" : "+1.934.506.1355"
     }
    

    The command will return the following format:

     {"success":true,"data":{"id":6,"firstName":"Parth","lastName":"Patel","email":"[email protected]","mobileNumber":"07459169377","phoneNumber":"+1.934.506.1355","created_by":1,"updated_by":1,"created_at":"2021-09-03T13:34:18.000000Z","updated_at":"2021-09-03T14:00:41.000000Z"},"message":"Phone book updated successfully."}
    
  5. Delete

    Url : {Your_Path}/api/phonebooks/{phonebook}

    Method - DELETE

    Body : row

    Data : null

    The command will return the following format:

    {"success":true,"message":"Phone book deleted successfully."}

Postman

https://github.com/parth11991/Lightflows/blob/main/postman_collection/Laravel-Test-Api.postman_collection.json
You might also like...
this package can help you to test race condition in Laravel Feature Test
this package can help you to test race condition in Laravel Feature Test

Laravel Async Testing this package can help you to test race condition in Laravel Feature Test Requirements Laravel versions 5.7, 6.x, 7.x and 8.x PHP

SNIA SSS PTS test suite based on SNIA's Solid State Storage Performance Test Specification for Transcend products
SNIA SSS PTS test suite based on SNIA's Solid State Storage Performance Test Specification for Transcend products

SNIA-SSS-PTS ABSTRACT SNIA SSS PTS describes a solid state storage device-level performance test methodology, test suite and reporting format intended

:heavy_check_mark: PHP Test Framework for Freedom, Truth, and Justice
:heavy_check_mark: PHP Test Framework for Freedom, Truth, and Justice

Kahlan is a full-featured Unit & BDD test framework a la RSpec/JSpec which uses a describe-it syntax and moves testing in PHP one step forward. Kahlan

Event driven BDD test framework for PHP
Event driven BDD test framework for PHP

The highly extensible, highly enjoyable, PHP testing framework. Read more at peridot-php.github.io or head over to the wiki. Building PHAR Peridot's p

BDD test framework for PHP

BDD test framework for PHP, inspired by Jasmine and RSpec. Features a familiar syntax, and a watch command to automatically re-run specs during develo

vfsStream is a stream wrapper for a virtual file system that may be helpful in unit tests to mock the real file system. It can be used with any unit test framework, like PHPUnit or SimpleTest.

vfsStream vfsStream is a stream wrapper for a virtual file system that may be helpful in unit tests to mock the real file system. It can be used with

Generate Laravel test factories from your existing models

Laravel Test Factory Generator php artisan generate:model-factory This package will generate factories from your existing models so you can get starte

Test your routes without hassle
Test your routes without hassle

Laravel Api Tester Live demo Try it out: laravel-api-tester.asva.by Docs Those are short and easy to read. Take a look. Interface FAQ Installation Req

Allow multiple options for Magento 2 checkout layout. Provides capabilities to AB test checkout changes and more.
Allow multiple options for Magento 2 checkout layout. Provides capabilities to AB test checkout changes and more.

Aimes_CheckoutDesigns Features Please note: This module is currently still considered a proof of concept. This module provides the ability to change c

⛽ Pest plugin to test Laravel applications powered by Octane.

⛽ Laravel Octane (Pest Plugin) Pest plugin to test Laravel applications powered by Octane. Install Via Composer composer require --dev cerbero/pest-pl

⛽ Set of utilities to test Laravel applications powered by Octane.

⛽ Octane Testbench Set of utilities to test Laravel applications powered by Octane. Install Via Composer: composer require --dev cerbero/octane-testbe

Test your PHP GraphQL server in style, with Pest!

Pest GraphQL Plugin Test your GraphQL API in style, with Pest! Installation Simply install through Composer! composer require --dev miniaturebase/pest

A library for reading and writing DNA test kit files in PHP.

php-dna Requirements php-dna 1.0+ requires PHP 8.0 (or later). Installation There are two ways of installing php-dna. Composer To install php-dna in y

Package to easily test crudable controllers for Laravel based API

Laravel Crudable Test This package is very usefull to easily test crudable controllers. Installation You can install package via composer. Add reposit

This is mini project for online test with Face Camera detection and Anti Cheating
This is mini project for online test with Face Camera detection and Anti Cheating

Online Test Script With Face Detection + Anti Cheating This is mini project that you can use this to make your own online test. This project include F

Magic Test allows you to write browser tests by simply clicking around on the application being tested, all without the slowness of constantly restarting the testing environment.

Magic Test for Laravel Magic Test allows you to write browser tests by simply clicking around on the application being tested, all without the slownes

A sample RESTful API in Laravel with PHPunit test.

Laravel PHP Framework URL | URI | Action |

Test a method against a list of XSS known.

php-xss-tests Test a method against a list of XSS known. How to run Just execute "run.sh", it will start a docker container to do all stuff. How I kno

Owner
Parth Patel
Sr. Full Stack Developer, Application Architecture & Software Engineering Lead at Onfuro Pvt. Ltd.
Parth Patel
⛽ Set of utilities to test Laravel applications powered by Octane.

⛽ Octane Testbench Set of utilities to test Laravel applications powered by Octane. Install Via Composer: composer require --dev cerbero/octane-testbe

Andrea Marco Sartori 35 Dec 7, 2022
Package to easily test crudable controllers for Laravel based API

Laravel Crudable Test This package is very usefull to easily test crudable controllers. Installation You can install package via composer. Add reposit

null 2 Jul 27, 2022
🧾 Online test site with the human sciences theme. Using: HTML5, CSS3, Js., PHP7 and MySQL. 🚀

form-ciencias-humanas ?? Technologies Lunacy HTML5 CSS3 PHP7 MYSQL Animate.css Illustrations from icons8: Earth care from Anna Antipina Earth and Moon

Vinícius 1 Jan 9, 2022
Test your Laravel applications with phpspec

phpspec Laravel Extension phpspec extension for testing Laravel applications. Versions Depending on the version of Laravel and/or Phpspec you're using

Ben Constable 145 Sep 27, 2022
Laravel-OvalFi helps you Set up, test, and manage your OvalFi integration directly in your Laravel App.

OvalFi Laravel Package Laravel-OvalFi helps you Set up, test, and manage your OvalFi integration directly in your Laravel App. Installation You can in

Paul Adams 2 Sep 8, 2022
QaraTMS is open source test case, test suites, test plans and test runs management tool.

QaraTMS - Open Source Test Management System QaraTMS is open source test management software for managing test suites, test cases, test plans, test ru

Alex H 29 Dec 22, 2022
Technical test from a company - Laravel 8 | REST Api | Livewire | Boostrap

Contacts CRUD (Laravel 8) (Demo) Introduction A simple CRUD for manage contacts using Laravel 8. All transaccions work through an REST API. Tech stack

Sebastian Sperandio 3 Nov 17, 2022
Technical-test-Website für FridaysForFuture Sigmaringen.

FFF-Sigmaringen-Website Technologies used Google Fonts 'Roboto' Font Normalize.css Prefixfree Material Icons Simple Icons Created by Joshua Hehnle Jan

Joshua 3 Nov 16, 2021
A list of useful Magento technical resources

Magento 2 Resources A curated list of useful Magento 2 resources. Resources are listed alphabetically within each category. This file is automatically

Alessandro Ronchi 895 Dec 28, 2022
Record your test suite's HTTP interactions and replay them during future test runs for fast, deterministic, accurate tests.

This is a port of the VCR Ruby library to PHP. Record your test suite's HTTP interactions and replay them during future test runs for fast, determinis

php-vcr 1.1k Dec 23, 2022