Skip to content

This is a simple RESTful api where laravel version is 6

Notifications You must be signed in to change notification settings

eliyas5044/laravel-api

Repository files navigation

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 !

Releases

No releases published

Packages

No packages published

Languages