Used to collect a Token for a registered User.
URL : /api/login/
Method : POST
Auth required : NO
Data constraints
{
"username": "[valid email address]",
"password": "[password in plain text]"
}Data example
{
"username": "valid.user@example.com",
"password": "qwerty1234"
}Code : 200 OK
Content example
{
"token": "9w2sa2337a2df03h6l85b4775q324ewp80e7"
}Condition : If 'username' and 'password' combination is wrong.
Code : 400 BAD REQUEST
Content :
{
"error": "Unable to login with provided credentials."
}