GET api/UserManager/GetRoles

Getting roles

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Result containing a list of roles

ObjResultOfRoleItem[]
NameDescriptionTypeAdditional information
Data

Collection of RoleItem

None.

Error

Error description

string

None.

Success

Flag of successful operation

boolean

None.

ErrorCode

Error code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "data": [
    {
      "roleId": 1,
      "permissions": [
        1,
        2
      ],
      "name": "sample string 2",
      "systemName": "sample string 3",
      "readOnly": true,
      "builtIn": true,
      "systemRole": true
    },
    {
      "roleId": 1,
      "permissions": [
        1,
        2
      ],
      "name": "sample string 2",
      "systemName": "sample string 3",
      "readOnly": true,
      "builtIn": true,
      "systemRole": true
    }
  ],
  "error": "sample string 1",
  "success": true,
  "errorCode": 3
}