GET municipality/{municipalityCode}/department?orderbyCode={orderbyCode}
Lists all departments (by municipalityCode).
Request Information
Parameters
Name | Description | Additional information |
---|---|---|
municipalityCode | Resultset is filtered by municipalityCode |
Define this parameter in the request URI. |
orderbyCode | Resultset is ordered by Name by default, by Code if orderbyCode=true |
Define this parameter in the request URI. |
Response Information
No documentation available.
Response body formats
application/json, text/json
Sample:
{ "departments": [ { "departmentCode": "sample string 1", "departmentName": "sample string 2" }, { "departmentCode": "sample string 1", "departmentName": "sample string 2" }, { "departmentCode": "sample string 1", "departmentName": "sample string 2" } ], "result": { "succes": true, "startTimeStamp": "2024-09-08T00:58:30.5695962+00:00", "endTimeStamp": "2024-09-08T00:58:30.5695962+00:00", "elapsed": 4, "errorMessage": "sample string 5" } }
application/xml, text/xml
Sample:
<Departments xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <DepartmentList> <DepartmentItem> <DepartmentCode>sample string 1</DepartmentCode> <DepartmentName>sample string 2</DepartmentName> </DepartmentItem> <DepartmentItem> <DepartmentCode>sample string 1</DepartmentCode> <DepartmentName>sample string 2</DepartmentName> </DepartmentItem> <DepartmentItem> <DepartmentCode>sample string 1</DepartmentCode> <DepartmentName>sample string 2</DepartmentName> </DepartmentItem> </DepartmentList> <Result> <Success>true</Success> <StartTimeStamp>2024-09-08T00:58:30.5695962+00:00</StartTimeStamp> <EndTimeStamp>2024-09-08T00:58:30.5695962+00:00</EndTimeStamp> <Elapsed>4</Elapsed> <ErrorMessage>sample string 5</ErrorMessage> </Result> </Departments>