RESTful API in Laravel 8 that contains all methods (GET,POST,PUT,DELETE)
Create MYSQL Database
Database Name : back-end
Update the database with new data model
$ php artisan migrate
Start the web server on http://http://127.0.0.1:8000
$ php artisan serve
HTTP verbs | Paths | Used for |
---|---|---|
GET | /api/records | List all records |
POST | /api/records | Add new record |
PUT | /api/records/id | Update a record |
DELETE | /api/records/id | Delete a record |
REST-Client Screenshot
Postman Screenshot