GET api/Departments?branchId={branchId}
Gets all departments by branchid
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| branchId |
Branchid |
integer |
Required |
Body Parameters
None.
Remarks
None.
Example
None.
Response Information
Resource Description
Collection of DepartmentResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
Required |
|
| Name | string |
Required Max length: 80 |
Response Formats
application/json, text/json
Sample:
[
{
"Id": "94490516-1f9c-468d-8e39-f9383a011bbb",
"Name": "sample string 2"
},
{
"Id": "94490516-1f9c-468d-8e39-f9383a011bbb",
"Name": "sample string 2"
}
]
application/xml, text/xml
Sample:
<ArrayOfDepartmentResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Compilator.DDAPI.DTO.Business">
<DepartmentResponse>
<Id>94490516-1f9c-468d-8e39-f9383a011bbb</Id>
<Name>sample string 2</Name>
</DepartmentResponse>
<DepartmentResponse>
<Id>94490516-1f9c-468d-8e39-f9383a011bbb</Id>
<Name>sample string 2</Name>
</DepartmentResponse>
</ArrayOfDepartmentResponse>