Skip to content

Tugas Besar Pengembangan Aplikasi Berbasis Web ITERA

Notifications You must be signed in to change notification settings

josestg/envitera-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Envitera-api

Final Project Pengembangan Aplikasi Berbasis Web ITERA

HTTP requests

All API requests are made by sending a secure HTTPS request using one of the following methods, depending on the action being taken:
  • POST Create a resource
  • PUT Update a resource
  • GET Get a resource or list of resources
  • DELETE Delete a resource

HTTP Response Codes

Each response will be returned with one of the following HTTP status codes:
  • 200 OK The request was successful
  • 400 Bad Request There was a problem with the request (security, malformed, data validation, etc.)
  • 401 Unauthorized The supplied API credentials are invalid
  • 403 Forbidden The credentials provided do not have permission to access the requested resource
  • 404 Not found An attempt was made to access a resource that does not exist in the API
  • 405 Method not allowed The resource being accessed doesn't support the method specified (GET, POST, etc.).
  • 500 Server Error An error on the server An error on the server occurred.

Resources

each route which access is private required a token string in header.

Users

Route Description Access
POST api/users/register Register new user Public
POST api/users/login Login User and return a token Public
GET api/users/current Return user current payload Private

Profiles

Route Description Access
GET api/profile Get current user profile Private
GET api/profile/handle/:handle Get a profile by handle Public
GET api/profile/user/:user_id Get profile by user id Public
GET api/profile/all Get all profile Public
POST api/profile Create current user profile Private
GET api/profile/user/:user_id Get profile by user id Public

About

Tugas Besar Pengembangan Aplikasi Berbasis Web ITERA

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published