GET api/v1/NPECandidates?ElectoralEventID={ElectoralEventID}&ProvinceID={ProvinceID}&PartyID={PartyID}

Get Provincial Candidates for a specific party and electoral event

Request Information

Parameters

NameDescriptionAdditional 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,
    "Firstname": "sample string 3",
    "Surname": "sample string 4",
    "PartyAbbr": "sample string 5"
  },
  {
    "Rank": 1,
    "ID": 2,
    "Firstname": "sample string 3",
    "Surname": "sample string 4",
    "PartyAbbr": "sample string 5"
  },
  {
    "Rank": 1,
    "ID": 2,
    "Firstname": "sample string 3",
    "Surname": "sample string 4",
    "PartyAbbr": "sample string 5"
  }
]

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 3</Firstname>
    <ID>2</ID>
    <PartyAbbr>sample string 5</PartyAbbr>
    <Rank>1</Rank>
    <Surname>sample string 4</Surname>
  </NPEProvincialCandidate>
  <NPEProvincialCandidate>
    <Firstname>sample string 3</Firstname>
    <ID>2</ID>
    <PartyAbbr>sample string 5</PartyAbbr>
    <Rank>1</Rank>
    <Surname>sample string 4</Surname>
  </NPEProvincialCandidate>
  <NPEProvincialCandidate>
    <Firstname>sample string 3</Firstname>
    <ID>2</ID>
    <PartyAbbr>sample string 5</PartyAbbr>
    <Rank>1</Rank>
    <Surname>sample string 4</Surname>
  </NPEProvincialCandidate>
</ArrayOfNPEProvincialCandidate>