POST
Create a resourcePUT
Update a resourceGET
Get a resource or list of resourcesDELETE
Delete a resource
200 OK
The request was successful400 Bad Request
There was a problem with the request (security, malformed, data validation, etc.)401 Unauthorized
The supplied API credentials are invalid403 Forbidden
The credentials provided do not have permission to access the requested resource404 Not found
An attempt was made to access a resource that does not exist in the API405 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.
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 |