GET api/v1/NPESeatAllocationResults?ElectoralEventID={ElectoralEventID}&PartyID={PartyID}

Get Party Seat Allocation on National level

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.

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

application/xml, text/xml

Sample:
<ArrayOfCandidate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IECService.Models">
  <Candidate>
    <Firstname>sample string 3</Firstname>
    <ID>2</ID>
    <Rank>1</Rank>
    <Surname>sample string 4</Surname>
  </Candidate>
  <Candidate>
    <Firstname>sample string 3</Firstname>
    <ID>2</ID>
    <Rank>1</Rank>
    <Surname>sample string 4</Surname>
  </Candidate>
  <Candidate>
    <Firstname>sample string 3</Firstname>
    <ID>2</ID>
    <Rank>1</Rank>
    <Surname>sample string 4</Surname>
  </Candidate>
</ArrayOfCandidate>