GET api/userlog/GetDepartmentRoles?departmentId={departmentId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| departmentId | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of DepartmentRole| Name | Description | Type | Additional information |
|---|---|---|---|
| DepartmentRoleId | integer |
None. |
|
| RoleName | string |
None. |
|
| DepartmentId | integer |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"DepartmentRoleId": 1,
"RoleName": "sample string 2",
"DepartmentId": 3
},
{
"DepartmentRoleId": 1,
"RoleName": "sample string 2",
"DepartmentId": 3
}
]
text/html
Sample:
[{"DepartmentRoleId":1,"RoleName":"sample string 2","DepartmentId":3},{"DepartmentRoleId":1,"RoleName":"sample string 2","DepartmentId":3}]
application/xml, text/xml
Sample:
<ArrayOfDepartmentRole xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/KnowledgeBase.Logging.UserLogSettings">
<DepartmentRole>
<DepartmentId>3</DepartmentId>
<DepartmentRoleId>1</DepartmentRoleId>
<RoleName>sample string 2</RoleName>
</DepartmentRole>
<DepartmentRole>
<DepartmentId>3</DepartmentId>
<DepartmentRoleId>1</DepartmentRoleId>
<RoleName>sample string 2</RoleName>
</DepartmentRole>
</ArrayOfDepartmentRole>