mafs/lumen
The Laravel Lumen Framework.
1
| Install | |
|---|---|
composer require mafs/lumen |
|
| PHP: | ^7.2.5 |
| License: | MIT |
| Last Updated: | Sep 12, 2022 |
| Links: | GitHub · Packagist |
Maintainer: andrefahrezii
REST API Laravel Lumen
Documentation
-
Git Clone https://github.com/andrefahrezii/REST-API-Laravel-Lumen.git
-
please setup database settings in .env

-
Php Migrate

-
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

