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
token in uuid format
- account_type string
Possible values: [
admin
]account role that affects permissions
{
"token": "cb211ea5-d7ba-41dc-ae8d-05e6605c3c6b",
"account_type": "admin"
}
{
"token": "cb211ea5-d7ba-41dc-ae8d-05e6605c3c6b",
"account_type": "admin"
}
Validation error or required fields are not provided
- application/json
- Schema
- Example (from schema)
- Wrong
- Missed
Schema
- error string
error type/info
{
"error": "Wrong login or password"
}
{
"error": "Wrong login or password"
}
{
"error": "Required parameters missed"
}
Loading...