- DB
- DB_CONNECTION=mysql
- DB_HOST=127.0.0.1
- DB_PORT=3306
- DB_DATABASE=test
- DB_USERNAME=XXX
- DB_PASSWORD=XXXX
- composer install
- php artisan migrate:fresh --seed
- php artisan serve
- open http://localhost:8000/products
- https://github.com/DarkaOnLine/L5-Swagger
- php artisan vendor:publish --provider "L5Swagger\L5SwaggerServiceProvider"
- php artisan l5-swagger:generate
- open this link http://localhost:8000/api/documentation
- There are options to execute any particular url from documentation
ALTERNATIVE
- open https://editor.swagger.io/
- paste api-docs.json and check doc
OR
- Download postman collection from doc/testCollections.postman_collection.json