-
Git Clone https://github.com/andrefahrezii/REST-API-Laravel-Lumen.git
-
run laravel lumen with command run laravel lumen with command
-
Metod
- Show All Data
- Input Data
note : On the Body tab, friends, select x-www-form-urlencode and in the key section, enter the title and content and don't forget to use the POST method
* POST http://localhost:8000/posts/
- Display data by ID
note : in the last slash enter the id, here I will give an example with id 3
please enter http://localhost:8000/posts/1 and don't forget to use the GET method.
* http://localhost:8000/posts/3
- Update Data
note : Now we try to update the data, please, friends, open Postman and enter http://localhost:8000/posts/3
In the Body tab, friends, select x-www-form-urlencode and in the key section, enter the title and content and don't forget to use the PUT method
* http://localhost:8000/posts/3
- Delete Data
Note : Now friends, you can try the application using Postman, please enter http://localhost:8000/posts/3 and don't forget to use the DELETE method.
* http://localhost:8000/posts/3
andrefahrezii / rest-api-laravel-lumen Goto Github PK
View Code? Open in Web Editor NEWGitHub Desktop tutorial repository