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
RoleRepresentationName | 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": "dd431bb6-34d5-4e9d-b6dd-e23d12616451", "Name": "sample string 2", "_links": [ { "Rel": "self", "Href": "~/roles/dd431bb6-34d5-4e9d-b6dd-e23d12616451", "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": "dd431bb6-34d5-4e9d-b6dd-e23d12616451", "Name": "sample string 2", "_links": { "self": { "href": "/roles/dd431bb6-34d5-4e9d-b6dd-e23d12616451" }, "sample string 1": { "href": "sample string 2", "title": "sample string 3" } } }
application/hal+xml
Sample:
<resource rel="sample string 4" href="~/roles/dd431bb6-34d5-4e9d-b6dd-e23d12616451" name="sample string 6"> <link rel="sample string 1" href="sample string 2" /> <Id>dd431bb6-34d5-4e9d-b6dd-e23d12616451</Id> <Name>sample string 2</Name> <Description>sample string 3</Description> </resource>