GET api/organization/departments?type={type}
Returns a list of departments for the currently logged in company.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
type | DepartmentTypeDTO |
None. |
Body Parameters
None.
Response Information
Resource Description
Department DTO.
Collection of GetDepartmentTextValueDTOName | Description | Type | Additional information |
---|---|---|---|
value |
Department ID. |
integer |
None. |
text |
Department name. |
string |
None. |
DepartmentType |
Department type. |
DepartmentTypeDTO |
None. |
Response Formats
application/json, text/json
Sample:
[ { "value": 1, "text": "sample string 2", "DepartmentType": 0 }, { "value": 1, "text": "sample string 2", "DepartmentType": 0 } ]
text/html
Sample:
[{"value":1,"text":"sample string 2","DepartmentType":0},{"value":1,"text":"sample string 2","DepartmentType":0}]
application/xml, text/xml
Sample:
<ArrayOfGetDepartmentTextValueDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Common.WebAPI.DTOs"> <GetDepartmentTextValueDTO> <DepartmentType>Department</DepartmentType> <text>sample string 2</text> <value>1</value> </GetDepartmentTextValueDTO> <GetDepartmentTextValueDTO> <DepartmentType>Department</DepartmentType> <text>sample string 2</text> <value>1</value> </GetDepartmentTextValueDTO> </ArrayOfGetDepartmentTextValueDTO>