Register a new user.
URL : /api/users/register
Method : POST
Auth required : NO
Permissions required : None
Data constraints :
Form-data (application-type: multipart/form-data
) format expected from the client to the server.
{
"email": "[user email]",
"username": "[user username]",
"password": "[user password]"
}
Code : 201 CREATED
Content :
Return JSON format (mimetype: application/json
) from server to client
{
"success": "New User Created"
}
Codes :
400 Bad Request
(If python error occurs)403 Forbidden
(If user email already esists)Content :
{
"error": "[whatever the error is]"
}