GET api/Delimitation/ElectoralEventID/{ElectoralEventID}/ProvinceID/{ProvinceID}/MunicipalityID/{MunicipalityID}/WardID/{WardID}
Returns a list of voting districts for the specified province, municipality and ward
Request Information
Parameters
| Name | Description | Additional information |
|---|---|---|
| ElectoralEventID | Valid Electoral Event IDs can be obtained by invoking the ElectoralEvent Controller's Get action and passing an ElectoralEventTypeID: api/v1/ElectoralEvent?ElectoralEventTypeID={ElectoralEventTypeID} |
Define this parameter in the request URI. |
| ProvinceID | Valid Province IDs can be obtained by invoking the Delimitation Controller's Get Action and passing an ElectoralEventID: api/v1/Delimitation?ElectoralEventID={ElectoralEventID} |
Define this parameter in the request URI. |
| MunicipalityID | Valid Municipality IDs can be obtained by invoking the Delimitation Controller's Get Action and passing an ElectoralEventID and ProvinceID:" api/v1/Delimitation?ElectoralEventID={ElectoralEventID}&ProvinceID={ProvinceID} |
Define this parameter in the request URI. |
| WardID | Valid Ward IDs can be obtained by invoking the Delimitation Controller's Get Action and passing an ElectoralEventID, ProvinceID and MunicipalityID: api/v1/Delimitation?ElectoralEventID={ElectoralEventID}&ProvinceID={ProvinceID}&MunicipalityID={MunicipalityID} |
Define this parameter in the request URI. |
Response Information
Response body formats
application/json, text/json
Sample:
[
{
"ProvinceID": 1,
"MunicipalityID": 2,
"WardID": 3,
"VDNumber": 4
},
{
"ProvinceID": 1,
"MunicipalityID": 2,
"WardID": 3,
"VDNumber": 4
},
{
"ProvinceID": 1,
"MunicipalityID": 2,
"WardID": 3,
"VDNumber": 4
}
]
application/xml, text/xml
Sample:
<ArrayOfDelimVotingDistrict xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IECService.Models">
<DelimVotingDistrict>
<MunicipalityID>2</MunicipalityID>
<ProvinceID>1</ProvinceID>
<VDNumber>4</VDNumber>
<WardID>3</WardID>
</DelimVotingDistrict>
<DelimVotingDistrict>
<MunicipalityID>2</MunicipalityID>
<ProvinceID>1</ProvinceID>
<VDNumber>4</VDNumber>
<WardID>3</WardID>
</DelimVotingDistrict>
<DelimVotingDistrict>
<MunicipalityID>2</MunicipalityID>
<ProvinceID>1</ProvinceID>
<VDNumber>4</VDNumber>
<WardID>3</WardID>
</DelimVotingDistrict>
</ArrayOfDelimVotingDistrict>