Eliyas5044 Laravel Api Save

This is a simple RESTful api where laravel version is 6

Project README

Build Status Total Downloads Latest Stable Version License

laravel-api

  • First clone via git bash or download it. It is a RESTful api, you will find angular app angular-laravel .

  • Create your database with name laravel_api, you may change later.

  • After creating database, run this command in your terminal

make init
  • Run this command to live your RESTful api
php artisan serve
  • You can check via postman. All books routes are protected by auth:api middleware, so you have to register or login to navigate those uri's.

All end points

user routes

  1. http://localhost:8000/api/register
  2. http://localhost:8000/api/login
  3. http://localhost:8000/api/logout
  4. http://localhost:8000/api/me
  5. http://localhost:8000/api/refresh

book routes

  1. Method GET, URI - http://localhost:8000/api/book
  2. Method POST, URI - http://localhost:8000/api/book
  3. Method PUT, URI - http://localhost:8000/api/book/{id}
  4. Method DELETE, URI - http://localhost:8000/api/book/{id}
  • Clone or download angular and run this app. You will see data will load from this server to your angluar app.

Enjoy !

Open Source Agenda is not affiliated with "Eliyas5044 Laravel Api" Project. README Source: eliyas5044/laravel-api
Stars
33
Open Issues
26
Last Commit
1 year ago

Open Source Agenda Badge

Open Source Agenda Rating