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
  • 200 Ok

{ "resource": { "uri": "string", "name": "string", "label": "string", "description": "string", "actions": [ { "name": "string", "label": "string", "master": boolean, "hasAttributes": boolean, "locked": boolean } ], "domainName": "string", "serviceName": "string" } }
  • 400 Requisição inválida, parâmetros obrigatórios não informados, campo informado incorretamente ou não pode remover recurso ou recurso não tem qualquer ação

  • 403 Permissão negada

  • 404 Recurso não encontrado

{ "message": "No entity instance was found with the given id", "errorCode": "getResourceResponse", "reason": "OBJECT_NOT_FOUND", "domain": "platform", "service": "authorization" }