- Laravel/passport (Laravel Passport is an OAuth2 server) https://laravel.com/docs/5.8/passport
- laravel-cors https://github.com/barryvdh/laravel-cors
GET|HEAD | api/user
POST | api/products
GET|HEAD | api/products
GET|HEAD | api/products/{product}
DELETE | api/products/{product}
PUT|PATCH | api/products/{product}
POST | api/products/{product}/reviews
GET|HEAD | api/products/{product}/reviews
DELETE | api/products/{product}/reviews/{review}
PUT|PATCH | api/products/{product}/reviews/{review}
GET|HEAD | api/products/{product}/reviews/{review}
$ git clone https://github.com/melihs/e-commerce-api.git
$ cd e-commerce-api && composer install
$ cp .env.example .env
- create new database and modifed your .env
$ php artisan migrate:fresh --seed
$ php artisan passport:install
$ php artisan key:generate
$ php artisan serve