GET v1/ShopRoles/{employeeId}
Get a list with all available ShopRoles for a given Employee.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| employeeId |
The Employee identifier. |
integer |
Required. |
Body Parameters
None.
Response Information
Resource Description
A list of the ShopRole objects.
Collection of ShopRole| Name | Description | Type | Additional information |
|---|---|---|---|
| Id |
Gets or sets the Id |
integer |
Required |
| Name |
Gets or sets the Name |
string |
Required Max length: 50 |
| ShopOwnerId |
Gets or sets the ShopOwnerId |
integer |
None. |
| Enabled |
Gets or sets the Enabled |
boolean |
Required |
| Authorizations |
Gets the Authorizations |
Collection of ShopRoleAuthorization |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"Id": 1,
"Name": "sample string 2",
"ShopOwnerId": 1,
"Enabled": true,
"Authorizations": []
},
{
"Id": 1,
"Name": "sample string 2",
"ShopOwnerId": 1,
"Enabled": true,
"Authorizations": []
}
]
application/xml, text/xml
Sample:
<ArrayOfShopRole xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ShopRole>
<Id>1</Id>
<Name>sample string 2</Name>
<ShopOwnerId>1</ShopOwnerId>
<Enabled>true</Enabled>
<Authorizations />
</ShopRole>
<ShopRole>
<Id>1</Id>
<Name>sample string 2</Name>
<ShopOwnerId>1</ShopOwnerId>
<Enabled>true</Enabled>
<Authorizations />
</ShopRole>
</ArrayOfShopRole>