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