Login
Implicit login via user credentials
POST
/api/v0/login
Request
In order to invoke this request, the user must have either ROLE_ADMIN
or ROLE_NETWORK_ADMIN
role.
Headers
Header | Required | Description |
---|---|---|
Content-Type | yes | Type of data sent (application/json ) |
Body
Parameter | Required | Type | Description |
---|---|---|---|
yes | string | ||
password | yes | string | Password |
Example
curl --request POST
--url https://net.wings.rs/api/v0/login
--header 'Content-Type: application/json'
--data '{
"email": "nbatocanin@wings.rs",
"password": "MySecret-Passw0rd"
}'
Response
Body
Parameter | Type | Description |
---|---|---|
headers | array | Data to be sent in request headers in order to authenticate |
Example
{
"data": {
"headers": {
"X-Auth-Token": "eyJjbGllbnRJZCI6IjljMTE1NDYyLTc0NTYtMTFlYS04ZDE2LTAyNDJh1ed3480"
}
}
}
In case of an error (status code 401
):
{
"error": {
"message": "Credentials Authentication failed"
}
}