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": "e65cb0e9-c2f4-4543-85af-24aed707fb80",
"Name": "sample string 2"
},
{
"Id": "e65cb0e9-c2f4-4543-85af-24aed707fb80",
"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>e65cb0e9-c2f4-4543-85af-24aed707fb80</Id>
<Name>sample string 2</Name>
</DepartmentResponse>
<DepartmentResponse>
<Id>e65cb0e9-c2f4-4543-85af-24aed707fb80</Id>
<Name>sample string 2</Name>
</DepartmentResponse>
</ArrayOfDepartmentResponse>