GET api/v1/NPECandidates?ElectoralEventID={ElectoralEventID}&ProvinceID={ProvinceID}&PartyID={PartyID}
Get Provincial Candidates for a specific party and electoral event
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. |
PartyID | Valid Party IDs can be obtained by invoking the ContestingParties Controller's Get Action and passing an ElectoralEventID: api/v1/ContestingParties?ElectoralEventID={ElectoralEventID} |
Define this parameter in the request URI. |
Response Information
Response body formats
application/json, text/json
Sample:
[ { "Rank": 1, "ID": 2, "PartyID": 3, "IsIndependent": "sample string 4", "ListType": "sample string 5", "Firstname": "sample string 6", "Surname": "sample string 7", "PartyAbbr": "sample string 8" }, { "Rank": 1, "ID": 2, "PartyID": 3, "IsIndependent": "sample string 4", "ListType": "sample string 5", "Firstname": "sample string 6", "Surname": "sample string 7", "PartyAbbr": "sample string 8" }, { "Rank": 1, "ID": 2, "PartyID": 3, "IsIndependent": "sample string 4", "ListType": "sample string 5", "Firstname": "sample string 6", "Surname": "sample string 7", "PartyAbbr": "sample string 8" } ]
application/xml, text/xml
Sample:
<ArrayOfNPEProvincialCandidate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IECService.Models"> <NPEProvincialCandidate> <Firstname>sample string 6</Firstname> <ID>2</ID> <IsIndependent>sample string 4</IsIndependent> <ListType>sample string 5</ListType> <PartyAbbr>sample string 8</PartyAbbr> <PartyID>3</PartyID> <Rank>1</Rank> <Surname>sample string 7</Surname> </NPEProvincialCandidate> <NPEProvincialCandidate> <Firstname>sample string 6</Firstname> <ID>2</ID> <IsIndependent>sample string 4</IsIndependent> <ListType>sample string 5</ListType> <PartyAbbr>sample string 8</PartyAbbr> <PartyID>3</PartyID> <Rank>1</Rank> <Surname>sample string 7</Surname> </NPEProvincialCandidate> <NPEProvincialCandidate> <Firstname>sample string 6</Firstname> <ID>2</ID> <IsIndependent>sample string 4</IsIndependent> <ListType>sample string 5</ListType> <PartyAbbr>sample string 8</PartyAbbr> <PartyID>3</PartyID> <Rank>1</Rank> <Surname>sample string 7</Surname> </NPEProvincialCandidate> </ArrayOfNPEProvincialCandidate>