Used to login a registered user.
URL : /api/v2.0/login
HTTP Header :
Accept-Language: [language code]
Method : POST
Auth required : NO
Data constraints
{
"username": "[username in plain text]",
"password": "[password in plain text]"
}Data example
{
"username": "admin",
"password": "foobarbaz"
}Condition : If 'username' and 'password' combination is correct.
Code : 200 OK
Content example
{
"loggedin": true
}Condition : If 'username' and 'password' combination is wrong.
Code : 400 BAD REQUEST
Content :
{
"loggedin": false,
"error": "Wrong username or password."
}