GET api/v1/LGECandidates?ElectoralEventID={ElectoralEventID}&WardID={WardID}

Get LGE ward candidates for an electoral event and ward

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.

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:
[
  {
    "CandidateID": 1,
    "PartyID": 2,
    "PartyName": "sample string 3",
    "Surname": "sample string 4",
    "Fullname": "sample string 5"
  },
  {
    "CandidateID": 1,
    "PartyID": 2,
    "PartyName": "sample string 3",
    "Surname": "sample string 4",
    "Fullname": "sample string 5"
  },
  {
    "CandidateID": 1,
    "PartyID": 2,
    "PartyName": "sample string 3",
    "Surname": "sample string 4",
    "Fullname": "sample string 5"
  }
]

application/xml, text/xml

Sample:
<ArrayOfLGEWardCandidate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IECService.Models">
  <LGEWardCandidate>
    <CandidateID>1</CandidateID>
    <Fullname>sample string 5</Fullname>
    <PartyID>2</PartyID>
    <PartyName>sample string 3</PartyName>
    <Surname>sample string 4</Surname>
  </LGEWardCandidate>
  <LGEWardCandidate>
    <CandidateID>1</CandidateID>
    <Fullname>sample string 5</Fullname>
    <PartyID>2</PartyID>
    <PartyName>sample string 3</PartyName>
    <Surname>sample string 4</Surname>
  </LGEWardCandidate>
  <LGEWardCandidate>
    <CandidateID>1</CandidateID>
    <Fullname>sample string 5</Fullname>
    <PartyID>2</PartyID>
    <PartyName>sample string 3</PartyName>
    <Surname>sample string 4</Surname>
  </LGEWardCandidate>
</ArrayOfLGEWardCandidate>