Get user detials
URL : /api/users/details
Method : GET
Auth required : YES
Permissions required : None
Data constraints : Authentication token in the cookie header.
Code : 200 SUCCESS
Content :
Return JSON format (mimetype: application/json
) from server to client
{
"id": "[user id]",
"email": "[user email]",
"username": "[user Username]"
}
Codes :
400 Bad Request
(If python error occurs)403 Forbidden
(If no token)Content :
{
"error": "[whatever the error is]"
}