/laravel-REST-API-Passport

A simple laravel rest api using laravel passport

Primary LanguagePHP

Laravel REST API using Passport

Requirements

1. PHP version upto 7.1.3    
2. Laravel version  5.6, 5.7  
3. Spatie Laravel Backup version V5

Test on Postman

1. User Registration - http://localhost/api/register -POST
2. User login - http://localhost/api/login -POST
3. logged user - http://localhost/api/user  -GET
4. Create product - http://localhost/api/products -POST
5. View all products - http://localhost/api/products -GET
6. View product - http://localhost/api/products/1 -GET
7. Edit product - http://localhost/api/products/1 -PUT
8. Delete product - http://localhost/api/products/1 -DELETE

Note

You have to add Authorization into header option. Token get from user login

 Accept : application/json
 Authorization : Bearer token_get_from_login

alt text alt text alt text alt text

Find me on Linkedin : My Linkedin profile link \