https://github.com/riyadhahmed/laravel-rest-api-passport
A simple laravel rest api using laravel passport
https://github.com/riyadhahmed/laravel-rest-api-passport
Last synced: 21 days ago
JSON representation
A simple laravel rest api using laravel passport
- Host: GitHub
- URL: https://github.com/riyadhahmed/laravel-rest-api-passport
- Owner: Riyadhahmed
- Created: 2019-03-31T09:16:54.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-31T09:40:57.000Z (about 6 years ago)
- Last Synced: 2025-02-15T08:23:57.567Z (2 months ago)
- Language: PHP
- Size: 440 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# 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



Find me on Linkedin : [My Linkedin profile link](https://www.linkedin.com/in/monjur-morshed-riyadh-6aaba465/) \