Logs user into the system
Used to collect a Bearer token for a registered user
Query Parameters
- username string required
The user name for login
- password string required
MD5 hash of the password for login (e. g. 123456=E10ADC3949BA59ABBE56E057F20F883E)
Responses
- 200
- 400
OK
- application/json
- Schema
- Example (from schema)
- Example
Schema
- token string
Secret credential generated for a login session
- account_type string
Possible values: [
admin
,user (deprecated)
]User session type. User type has limited access rights
{
"token": "93144b288eb1fdccbe46d6fc0f241a51766ecd3d",
"account_type": "admin"
}
{
"account_type": "admin",
"token": "93144b288eb1fdccbe46d6fc0f241a51766ecd3d"
}
Validation error or required fields are not provided
- application/json
- Schema
- Example (from schema)
- Missed
- Wrong
Schema
- error string
Error information
{
"error": "Wrong login or password"
}
{
"error": "Required parameters missed"
}
{
"error": "Wrong login or password"
}
Loading...