GET api/UserManager/GetRoles

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

ObjResultOfRoleItem[]
NameDescriptionTypeAdditional information
Data

Collection of RoleItem

None.

Error

Error description if the operation failed

string

None.

Success

Operation result

boolean

None.

ErrorCode

Error code

integer

None.

Response Formats

application/json, text/json

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

application/xml, text/xml

Sample:
<ObjResultOfArrayOfRoleItemXmvOanaG xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DAMClient.Models">
  <_x003C_ErrorCode_x003E_k__BackingField>3</_x003C_ErrorCode_x003E_k__BackingField>
  <_x003C_Error_x003E_k__BackingField>sample string 1</_x003C_Error_x003E_k__BackingField>
  <_x003C_Success_x003E_k__BackingField>true</_x003C_Success_x003E_k__BackingField>
  <Data>
    <RoleItem>
      <BuiltIn>true</BuiltIn>
      <Name>sample string 2</Name>
      <Permissions xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>1</d4p1:int>
        <d4p1:int>2</d4p1:int>
      </Permissions>
      <ReadOnly>true</ReadOnly>
      <RoleId>1</RoleId>
    </RoleItem>
    <RoleItem>
      <BuiltIn>true</BuiltIn>
      <Name>sample string 2</Name>
      <Permissions xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>1</d4p1:int>
        <d4p1:int>2</d4p1:int>
      </Permissions>
      <ReadOnly>true</ReadOnly>
      <RoleId>1</RoleId>
    </RoleItem>
  </Data>
</ObjResultOfArrayOfRoleItemXmvOanaG>
bool hasModels = Model.ParameterModels.Count > 0; if (hasModels) {

Parameter Information

}