Used to collect a Token for a registered User.
POST /login
Content-Type: application/json
{
"username": "foo",
"password": "bar"
}
Result:
{
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE1NzU4O..."
}
This token should be used in the x-authorization
header on all API requests.
Example:
GET http://api_url/api/agencies?name=DVSI
Content-Type: application/json
x-authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE1NzU4O...