VIP Specification: Election

list: Return all upcoming elections.

retrieve: Return a specific upcoming election.

GET /api/elections/3/?format=api
HTTP 200 OK
Allow: OPTIONS, GET
Content-Type: application/json
Vary: Accept

{
    "url": "http://michiganelections.io/api/elections/3/?format=api",
    "id": 3,
    "name": "State General",
    "date": "2018-11-06",
    "date_humanized": "Tuesday, November 6th",
    "active": false,
    "proposals_count": 932,
    "positions_count": 3618,
    "reference_url": "https://www.michigan.gov/documents/sos/2018_Dates_600221_7.pdf"
}