Access Control

Authorisation Management

Swagger API Contract Link

authorizes if the action can be taken

POST/access/v1/actions/_authorize
Body

Details for the authorization request + RequestInfo meta data.

AuthorizationRequestAuthorizationRequest
RequestInfoRequestInfo (object)
Response

Ok

Request
const response = await fetch('/access/v1/actions/_authorize', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({}),
});
const data = await response.json();

getAllMDMSActions

POST/access/v1/actions/mdms/_get
Body

Request for getting actions.

actions*array of Action (object)
Response

Search action(s) successful

Body
actionsarray of Action (object)
Request
const response = await fetch('/access/v1/actions/mdms/_get', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "actions": [
        {
          "name": "text",
          "tenantId": "text"
        }
      ]
    }),
});
const data = await response.json();
Response
{
  "actions": [
    {
      "id": 0,
      "name": "text",
      "queryParams": "text",
      "url": "text",
      "parentModule": 0,
      "orderNumber": 0,
      "displayName": "text",
      "enabled": false,
      "createdBy": 0,
      "createdDate": "2024-12-22",
      "lastModifiedBy": 0,
      "lastModifiedDate": "2024-12-22",
      "tenantId": "text",
      "serviceCode": 0
    }
  ]
}

Last updated

All content on this page by eGov Foundation is licensed under a Creative Commons Attribution 4.0 International License.