GET api/v1/NPESeatCalculationResults?ElectoralEventID={ElectoralEventID}

Get Seat Calculation Results on National Level

Request Information

Parameters

NameDescriptionAdditional 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.

Response Information

Response body formats

application/json, text/json

Sample:
[
  {
    "ElectoralEventID": 1,
    "ElectoralEvent": "sample string 2",
    "PartyResults": [
      {
        "ID": 1,
        "Name": "sample string 2",
        "Regional": 3,
        "NationalPR": 4,
        "Overall": 5
      },
      {
        "ID": 1,
        "Name": "sample string 2",
        "Regional": 3,
        "NationalPR": 4,
        "Overall": 5
      },
      {
        "ID": 1,
        "Name": "sample string 2",
        "Regional": 3,
        "NationalPR": 4,
        "Overall": 5
      }
    ]
  },
  {
    "ElectoralEventID": 1,
    "ElectoralEvent": "sample string 2",
    "PartyResults": [
      {
        "ID": 1,
        "Name": "sample string 2",
        "Regional": 3,
        "NationalPR": 4,
        "Overall": 5
      },
      {
        "ID": 1,
        "Name": "sample string 2",
        "Regional": 3,
        "NationalPR": 4,
        "Overall": 5
      },
      {
        "ID": 1,
        "Name": "sample string 2",
        "Regional": 3,
        "NationalPR": 4,
        "Overall": 5
      }
    ]
  },
  {
    "ElectoralEventID": 1,
    "ElectoralEvent": "sample string 2",
    "PartyResults": [
      {
        "ID": 1,
        "Name": "sample string 2",
        "Regional": 3,
        "NationalPR": 4,
        "Overall": 5
      },
      {
        "ID": 1,
        "Name": "sample string 2",
        "Regional": 3,
        "NationalPR": 4,
        "Overall": 5
      },
      {
        "ID": 1,
        "Name": "sample string 2",
        "Regional": 3,
        "NationalPR": 4,
        "Overall": 5
      }
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfNPESeatCalculationNationalResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IECService.Models">
  <NPESeatCalculationNationalResult>
    <ElectoralEvent>sample string 2</ElectoralEvent>
    <ElectoralEventID>1</ElectoralEventID>
    <PartyResults>
      <NPESeatCalculationNationalPartyResult>
        <ID>1</ID>
        <Name>sample string 2</Name>
        <NationalPR>4</NationalPR>
        <Overall>5</Overall>
        <Regional>3</Regional>
      </NPESeatCalculationNationalPartyResult>
      <NPESeatCalculationNationalPartyResult>
        <ID>1</ID>
        <Name>sample string 2</Name>
        <NationalPR>4</NationalPR>
        <Overall>5</Overall>
        <Regional>3</Regional>
      </NPESeatCalculationNationalPartyResult>
      <NPESeatCalculationNationalPartyResult>
        <ID>1</ID>
        <Name>sample string 2</Name>
        <NationalPR>4</NationalPR>
        <Overall>5</Overall>
        <Regional>3</Regional>
      </NPESeatCalculationNationalPartyResult>
    </PartyResults>
  </NPESeatCalculationNationalResult>
  <NPESeatCalculationNationalResult>
    <ElectoralEvent>sample string 2</ElectoralEvent>
    <ElectoralEventID>1</ElectoralEventID>
    <PartyResults>
      <NPESeatCalculationNationalPartyResult>
        <ID>1</ID>
        <Name>sample string 2</Name>
        <NationalPR>4</NationalPR>
        <Overall>5</Overall>
        <Regional>3</Regional>
      </NPESeatCalculationNationalPartyResult>
      <NPESeatCalculationNationalPartyResult>
        <ID>1</ID>
        <Name>sample string 2</Name>
        <NationalPR>4</NationalPR>
        <Overall>5</Overall>
        <Regional>3</Regional>
      </NPESeatCalculationNationalPartyResult>
      <NPESeatCalculationNationalPartyResult>
        <ID>1</ID>
        <Name>sample string 2</Name>
        <NationalPR>4</NationalPR>
        <Overall>5</Overall>
        <Regional>3</Regional>
      </NPESeatCalculationNationalPartyResult>
    </PartyResults>
  </NPESeatCalculationNationalResult>
  <NPESeatCalculationNationalResult>
    <ElectoralEvent>sample string 2</ElectoralEvent>
    <ElectoralEventID>1</ElectoralEventID>
    <PartyResults>
      <NPESeatCalculationNationalPartyResult>
        <ID>1</ID>
        <Name>sample string 2</Name>
        <NationalPR>4</NationalPR>
        <Overall>5</Overall>
        <Regional>3</Regional>
      </NPESeatCalculationNationalPartyResult>
      <NPESeatCalculationNationalPartyResult>
        <ID>1</ID>
        <Name>sample string 2</Name>
        <NationalPR>4</NationalPR>
        <Overall>5</Overall>
        <Regional>3</Regional>
      </NPESeatCalculationNationalPartyResult>
      <NPESeatCalculationNationalPartyResult>
        <ID>1</ID>
        <Name>sample string 2</Name>
        <NationalPR>4</NationalPR>
        <Overall>5</Overall>
        <Regional>3</Regional>
      </NPESeatCalculationNationalPartyResult>
    </PartyResults>
  </NPESeatCalculationNationalResult>
</ArrayOfNPESeatCalculationNationalResult>