andes2912 / doogether

Test Backend Doogether

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Test Backend Doogether

Fitur

  • Login
  • Register
  • Logout
  • Refresh Token
  • Profile
  • List Session
  • Create Session
  • Detail Session
  • Update Session
  • Delete Session

How to install this project ?

# install dependencies
$ composer install

# setting .env
$ php artisan cp .env.example .env

# generate key
$ php artisan key:generate

# run server
$ php artisan serve

REQUEST

# 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

About Laravel

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:

Laravel is accessible, powerful, and provides tools required for large, robust applications.

About

Test Backend Doogether


Languages

Language:PHP 84.2%Language:Blade 15.1%Language:Shell 0.7%