GET api/Registration/GetRole
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
Collection of Role| Name | Description | Type | Additional information |
|---|---|---|---|
| RoleGuid | globally unique identifier |
None. |
|
| RoleName | string |
None. |
|
| RoleId | integer |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"RoleGuid": "707bf353-2ed8-4a7d-a6a0-687c4b50a563",
"RoleName": "sample string 2",
"RoleId": 3
},
{
"RoleGuid": "707bf353-2ed8-4a7d-a6a0-687c4b50a563",
"RoleName": "sample string 2",
"RoleId": 3
}
]
text/html
Sample:
[{"RoleGuid":"707bf353-2ed8-4a7d-a6a0-687c4b50a563","RoleName":"sample string 2","RoleId":3},{"RoleGuid":"707bf353-2ed8-4a7d-a6a0-687c4b50a563","RoleName":"sample string 2","RoleId":3}]
application/xml, text/xml
Sample:
<ArrayOfRole xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WorkPastWebApi.Models">
<Role>
<RoleGuid>707bf353-2ed8-4a7d-a6a0-687c4b50a563</RoleGuid>
<RoleName>sample string 2</RoleName>
</Role>
<Role>
<RoleGuid>707bf353-2ed8-4a7d-a6a0-687c4b50a563</RoleGuid>
<RoleName>sample string 2</RoleName>
</Role>
</ArrayOfRole>