Skip to content

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 !

About

This is a simple RESTful api where laravel version is 6

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy