Retorna os dados de um recurso.
Payload de entrada
{
//O identificador único do recurso
uri : "string"
}
Request
curl --location --request POST "https://api.senior.com.br/platform/authorization/getResource" --header "Content-Type: application/json" --header "client_id: {client_id}" --header "Accept: application/json" --header "Authorization: Bearer {token}" --data-raw "{ 'uri': '{string}' }"
Response
{
"resource": {
"uri": "string",
"name": "string",
"label": "string",
"description": "string",
"actions": [
{
"name": "string",
"label": "string",
"master": boolean,
"hasAttributes": boolean,
"locked": boolean
}
],
"domainName": "string",
"serviceName": "string"
}
}
{
"message": "No entity instance was found with the given id",
"errorCode": "getResourceResponse",
"reason": "OBJECT_NOT_FOUND",
"domain": "platform",
"service": "authorization"
}