Authentication
POST {URL}/api/autenticar
Request
curl --location 'https://{URL}/api/autenticar' \
--header 'Content-Type: application/json' \
--data '{
"username": "",
"password": ""
}'
Response
Success
{
"Sucesso": true,
"CodigoErro": 0,
"Mensagem": null,
"ExceptionMessage": null,
"InnerException": null,
"StackTrace": null,
"DataHora": "2020-04-14T11:50:17.6891265",
"Objecto": {
"Sucesso": true,
"IdentityToken": "ID_TOKEN"
}
}
the IdentityToken must be sent as a Bearer in the following executions Invoking endpoints with JWT token
|
Name |
Value |
|---|---|
|
|
|
Error
{
"Sucesso": false,
"CodigoErro": 0,
"Mensagem": null,
"ExceptionMessage": null,
"InnerException": null,
"StackTrace": null,
"DataHora": "2020-04-14T11:53:31.0089104",
"Objecto": null
}