GET api/v1/Roles

Returns a list of RoleViewModels that the API token has rights to view

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of RoleViewModel
NameDescriptionTypeAdditional information
RoleId

Represents the PK of the Role that is assigned to an existing User

integer

None.

Name

Represents the name of the Role that is assigned to an existing User

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "RoleId": 1,
    "Name": "sample string 2"
  },
  {
    "RoleId": 1,
    "Name": "sample string 2"
  }
]

application/xml, text/xml

Sample:
<ArrayOfRoleViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APIWebRole.Controllers">
  <RoleViewModel>
    <Name>sample string 2</Name>
    <RoleId>1</RoleId>
  </RoleViewModel>
  <RoleViewModel>
    <Name>sample string 2</Name>
    <RoleId>1</RoleId>
  </RoleViewModel>
</ArrayOfRoleViewModel>