GET api/departments/list?provinceID={provinceID}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| provinceID | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of DepartmentData| Name | Description | Type | Additional information |
|---|---|---|---|
| ProvinceID | integer |
None. |
|
| Name | string |
None. |
|
| ID | integer |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"ProvinceID": 1,
"Name": "sample string 1",
"ID": 1
},
{
"ProvinceID": 1,
"Name": "sample string 1",
"ID": 1
}
]
text/xml
Sample:
<ArrayOfDepartmentData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StackBase.Common.Data">
<DepartmentData>
<ID>1</ID>
<Name>sample string 1</Name>
<ProvinceID>1</ProvinceID>
</DepartmentData>
<DepartmentData>
<ID>1</ID>
<Name>sample string 1</Name>
<ProvinceID>1</ProvinceID>
</DepartmentData>
</ArrayOfDepartmentData>