GET api/UserRole/GetByID?role={role}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| role | string |
Required |
Body Parameters
None.
Response Information
Resource Description
UserRole| Name | Description | Type | Additional information |
|---|---|---|---|
| RoleId | globally unique identifier |
None. |
|
| Name | string |
None. |
|
| Description | string |
None. |
|
| Features | Collection of integer |
None. |
|
| AdminOrPartnerID | globally unique identifier |
None. |
Response Formats
application/json, text/json
Sample:
{
"RoleId": "ce3861e8-cd0e-4ce9-8ea6-3eb9e899f19c",
"Name": "sample string 2",
"Description": "sample string 3",
"Features": [
1,
2
],
"AdminOrPartnerID": "edd1ca6f-9072-4cde-b39e-35314877f305"
}
application/xml, text/xml
Sample:
<UserRole xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FleetrootPartner.Entity">
<AdminOrPartnerID>edd1ca6f-9072-4cde-b39e-35314877f305</AdminOrPartnerID>
<Description>sample string 3</Description>
<Features xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</Features>
<Name>sample string 2</Name>
<RoleId>ce3861e8-cd0e-4ce9-8ea6-3eb9e899f19c</RoleId>
</UserRole>