- Login
- Register
- Logout
- Refresh Token
- Profile
- List Session
- Create Session
- Detail Session
- Update Session
- Delete Session
# install dependencies
$ composer install
# setting .env
$ php artisan cp .env.example .env
# generate key
$ php artisan key:generate
# run server
$ php artisan serve
# Request Login
http://127.0.0.1:8000/api/auth/login
Parameter :
- email
- password
Method :
- POST
# Request Register
http://127.0.0.1:8000/api/auth/register
Parameter :
- name
- email
- password
- password_confirmation
Method :
- POST
# Request Profile
http://127.0.0.1:8000/api/auth/profile
Headers :
- Authorzation => Bearer Token
Method :
- GET
# Request List Session
http://127.0.0.1:8000/api/session/
Headers :
- Authorzation => Bearer Token
Method :
- GET
# Request Detail Session
http://127.0.0.1:8000/api/session/{id}
Headers :
- Authorzation => Bearer Token
Method :
- GET
# Request Create Session
http://127.0.0.1:8000/api/session/
Headers :
- Authorzation => Bearer Token
Params :
- name
- description
- duration
- start
Method :
- POST
# Request Update Session
http://127.0.0.1:8000/api/session/{id}
Headers :
- Authorzation => Bearer Token
Params :
- name
- description
- duration
- start
Method :
- PUT
# Request Delete Session
http://127.0.0.1:8000/api/session/{id}
Headers :
- Authorzation => Bearer Token
Method :
- DELETE
Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:
- Simple, fast routing engine.
- Powerful dependency injection container.
- Multiple back-ends for session and cache storage.
- Expressive, intuitive database ORM.
- Database agnostic schema migrations.
- Robust background job processing.
- Real-time event broadcasting.
Laravel is accessible, powerful, and provides tools required for large, robust applications.