GetAllRights

Function returns all rights

GET https://rest.crmango.com/api/GetAllRights

Authorization

1 Sent in the request headers
Bearer varchar

Auth token

Body data

0 Sent in the request body

This endpoint takes no body parameters

Response

2 HTTP 200

Function returns all rights

id integer

Record ID

name varchar

Right name

Example request

curl --request GET \
  --url 'https://rest.crmango.com/api/GetAllRights' \
  --header 'Authorization: Bearer auth_token'
{
    "code": 200,
    "response": [
        {
            "id": 1,
            "name": "Admin"
        },
        {
            "id": 2,
            "name": "Obchodnik"
        },
        {
            "id": 3,
            "name": "Montaz"
        },
        {
            "id": 4,
            "name": "Back-office"
        },
        {
            "id": 21,
            "name": "Vedenie"
        }
    ]
}