GET api/UserRole/GetAll?role={role}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| role | string |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of 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": "fdf23088-7b27-4cb5-b3ba-27f04ef5b705",
"Name": "sample string 2",
"Description": "sample string 3",
"Features": [
1,
2
],
"AdminOrPartnerID": "440316cc-3547-447b-87b2-0f2fe518456e"
},
{
"RoleId": "fdf23088-7b27-4cb5-b3ba-27f04ef5b705",
"Name": "sample string 2",
"Description": "sample string 3",
"Features": [
1,
2
],
"AdminOrPartnerID": "440316cc-3547-447b-87b2-0f2fe518456e"
}
]
application/xml, text/xml
Sample:
<ArrayOfUserRole xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FleetrootPartner.Entity">
<UserRole>
<AdminOrPartnerID>440316cc-3547-447b-87b2-0f2fe518456e</AdminOrPartnerID>
<Description>sample string 3</Description>
<Features xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:int>1</d3p1:int>
<d3p1:int>2</d3p1:int>
</Features>
<Name>sample string 2</Name>
<RoleId>fdf23088-7b27-4cb5-b3ba-27f04ef5b705</RoleId>
</UserRole>
<UserRole>
<AdminOrPartnerID>440316cc-3547-447b-87b2-0f2fe518456e</AdminOrPartnerID>
<Description>sample string 3</Description>
<Features xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:int>1</d3p1:int>
<d3p1:int>2</d3p1:int>
</Features>
<Name>sample string 2</Name>
<RoleId>fdf23088-7b27-4cb5-b3ba-27f04ef5b705</RoleId>
</UserRole>
</ArrayOfUserRole>