GET api/roles/{id}
Requires authentication. Get details of one role from the backend system
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
Unique identifier of role (guid) |
globally unique identifier |
Required |
Body Parameters
None.
Response Information
Resource Description
RoleRepresentation
RoleRepresentation| Name | Description | Type | Additional information |
|---|---|---|---|
| Id |
Unique identifier of Role |
globally unique identifier |
None. |
| Name |
System name of Role |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Id": "0d91d4c6-02a9-456f-a8ed-8b3badcc3f95",
"Name": "sample string 2",
"_links": [
{
"Rel": "self",
"Href": "~/roles/0d91d4c6-02a9-456f-a8ed-8b3badcc3f95",
"Title": null,
"IsTemplated": false
},
{
"Rel": "sample string 1",
"Href": "sample string 2",
"Title": "sample string 3",
"IsTemplated": false
},
{
"Rel": "sample string 1",
"Href": "sample string 2",
"Title": "sample string 3",
"IsTemplated": false
}
],
"_embedded": null
}
application/hal+json
Sample:
{
"Id": "0d91d4c6-02a9-456f-a8ed-8b3badcc3f95",
"Name": "sample string 2",
"_links": {
"self": {
"href": "/roles/0d91d4c6-02a9-456f-a8ed-8b3badcc3f95"
},
"sample string 1": {
"href": "sample string 2",
"title": "sample string 3"
}
}
}
application/hal+xml
Sample:
<resource rel="sample string 4" href="~/roles/0d91d4c6-02a9-456f-a8ed-8b3badcc3f95" name="sample string 6"> <link rel="sample string 1" href="sample string 2" /> <Id>0d91d4c6-02a9-456f-a8ed-8b3badcc3f95</Id> <Name>sample string 2</Name> <Description>sample string 3</Description> </resource>