POST api/elections/{uuid}/Results

Request Information

URI Parameters

NameDescriptionTypeAdditional information
uuid

string

Required

Body Parameters

ElectionResult
NameDescriptionTypeAdditional information
ElectionId

globally unique identifier

None.

Results

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ElectionId": "024ba7dc-4fd3-4e3d-9c83-751a648b0630",
  "Results": "sample string 2"
}

application/xml, text/xml

Sample:
<ElectionResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UniteHere.ElectionApp.Entities">
  <ElectionId>024ba7dc-4fd3-4e3d-9c83-751a648b0630</ElectionId>
  <Results>sample string 2</Results>
</ElectionResult>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.