andrefahrezii / REST-API-Laravel-Lumen by andrefahrezii

The Laravel Lumen Framework.
0
1
1
Package Data
Maintainer Username: andrefahrezii
Maintainer Contact: andre.fahrezi24@gmail.com (Andre Fahrezi)
Package Create Date: 2022-08-30
Package Last Update: 2022-09-12
Language: PHP
License: MIT
Last Refreshed: 2024-04-29 15:01:47
Package Statistics
Total Downloads: 0
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 1
Total Watchers: 1
Total Forks: 0
Total Open Issues: 0

REST API Laravel Lumen

Documentation

  • Git Clone https://github.com/andrefahrezii/REST-API-Laravel-Lumen.git

  • please setup database settings in .env image

  • Php Migrate image

  • run laravel lumen with command run laravel lumen with command

  • Metod

    • Show All Data
      • GET http://localhost:8000/posts/ image
    • 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/ image
    • 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 image
    • 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 image
    • 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 image