GET api/NPESeatCalculationResults/ElectoralEventID/{ElectoralEventID}/ProvinceID/{ProvinceID}
Get Seat Calculation Results on Provincial Level
Request Information
Parameters
Name | Description | Additional information |
---|---|---|
ElectoralEventID | Valid Electoral Event IDs can be obtain 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. |
Response Information
Response body formats
application/json, text/json
Sample:
[ { "ElectoralEventID": 1, "ElectoralEvent": "sample string 2", "ProvinceID": 3, "Province": "sample string 4", "PartyResults": [ { "ID": 1, "Name": "sample string 2", "NumberOfSeats": 3 }, { "ID": 1, "Name": "sample string 2", "NumberOfSeats": 3 }, { "ID": 1, "Name": "sample string 2", "NumberOfSeats": 3 } ] }, { "ElectoralEventID": 1, "ElectoralEvent": "sample string 2", "ProvinceID": 3, "Province": "sample string 4", "PartyResults": [ { "ID": 1, "Name": "sample string 2", "NumberOfSeats": 3 }, { "ID": 1, "Name": "sample string 2", "NumberOfSeats": 3 }, { "ID": 1, "Name": "sample string 2", "NumberOfSeats": 3 } ] }, { "ElectoralEventID": 1, "ElectoralEvent": "sample string 2", "ProvinceID": 3, "Province": "sample string 4", "PartyResults": [ { "ID": 1, "Name": "sample string 2", "NumberOfSeats": 3 }, { "ID": 1, "Name": "sample string 2", "NumberOfSeats": 3 }, { "ID": 1, "Name": "sample string 2", "NumberOfSeats": 3 } ] } ]
application/xml, text/xml
Sample:
<ArrayOfNPESeatCalculationProvincialResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IECService.Models"> <NPESeatCalculationProvincialResult> <ElectoralEvent>sample string 2</ElectoralEvent> <ElectoralEventID>1</ElectoralEventID> <PartyResults> <NPESeatCalculationProvincialPartyResult> <ID>1</ID> <Name>sample string 2</Name> <NumberOfSeats>3</NumberOfSeats> </NPESeatCalculationProvincialPartyResult> <NPESeatCalculationProvincialPartyResult> <ID>1</ID> <Name>sample string 2</Name> <NumberOfSeats>3</NumberOfSeats> </NPESeatCalculationProvincialPartyResult> <NPESeatCalculationProvincialPartyResult> <ID>1</ID> <Name>sample string 2</Name> <NumberOfSeats>3</NumberOfSeats> </NPESeatCalculationProvincialPartyResult> </PartyResults> <Province>sample string 4</Province> <ProvinceID>3</ProvinceID> </NPESeatCalculationProvincialResult> <NPESeatCalculationProvincialResult> <ElectoralEvent>sample string 2</ElectoralEvent> <ElectoralEventID>1</ElectoralEventID> <PartyResults> <NPESeatCalculationProvincialPartyResult> <ID>1</ID> <Name>sample string 2</Name> <NumberOfSeats>3</NumberOfSeats> </NPESeatCalculationProvincialPartyResult> <NPESeatCalculationProvincialPartyResult> <ID>1</ID> <Name>sample string 2</Name> <NumberOfSeats>3</NumberOfSeats> </NPESeatCalculationProvincialPartyResult> <NPESeatCalculationProvincialPartyResult> <ID>1</ID> <Name>sample string 2</Name> <NumberOfSeats>3</NumberOfSeats> </NPESeatCalculationProvincialPartyResult> </PartyResults> <Province>sample string 4</Province> <ProvinceID>3</ProvinceID> </NPESeatCalculationProvincialResult> <NPESeatCalculationProvincialResult> <ElectoralEvent>sample string 2</ElectoralEvent> <ElectoralEventID>1</ElectoralEventID> <PartyResults> <NPESeatCalculationProvincialPartyResult> <ID>1</ID> <Name>sample string 2</Name> <NumberOfSeats>3</NumberOfSeats> </NPESeatCalculationProvincialPartyResult> <NPESeatCalculationProvincialPartyResult> <ID>1</ID> <Name>sample string 2</Name> <NumberOfSeats>3</NumberOfSeats> </NPESeatCalculationProvincialPartyResult> <NPESeatCalculationProvincialPartyResult> <ID>1</ID> <Name>sample string 2</Name> <NumberOfSeats>3</NumberOfSeats> </NPESeatCalculationProvincialPartyResult> </PartyResults> <Province>sample string 4</Province> <ProvinceID>3</ProvinceID> </NPESeatCalculationProvincialResult> </ArrayOfNPESeatCalculationProvincialResult>