-
First clone via
git bash
or download it. It is a RESTful api, you will findangular
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.
http://localhost:8000/api/register
http://localhost:8000/api/login
http://localhost:8000/api/logout
http://localhost:8000/api/me
http://localhost:8000/api/refresh
- Method
GET
,URI
-http://localhost:8000/api/book
- Method
POST
,URI
-http://localhost:8000/api/book
- Method
PUT
,URI
-http://localhost:8000/api/book/{id}
- 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.