VIP 5.1.2: Party

list: Return all political parties.

retrieve: Return a specific political party.

GET /api/parties/
HTTP 200 OK
Allow: GET
Content-Type: application/json
Vary: Accept

{
    "count": 9,
    "next": null,
    "previous": null,
    "results": [
        {
            "url": "http://michiganelections.io/api/parties/1/",
            "id": 1,
            "name": "Democratic",
            "color": "#3333FF"
        },
        {
            "url": "http://michiganelections.io/api/parties/4/",
            "id": 4,
            "name": "Green",
            "color": "#00A95C"
        },
        {
            "url": "http://michiganelections.io/api/parties/3/",
            "id": 3,
            "name": "Libertarian",
            "color": "#ECC850"
        },
        {
            "url": "http://michiganelections.io/api/parties/7/",
            "id": 7,
            "name": "Natural Law",
            "color": "#CA0F67"
        },
        {
            "url": "http://michiganelections.io/api/parties/5/",
            "id": 5,
            "name": "Nonpartisan",
            "color": "#999"
        },
        {
            "url": "http://michiganelections.io/api/parties/6/",
            "id": 6,
            "name": "No Party Affiliation",
            "color": "#999"
        },
        {
            "url": "http://michiganelections.io/api/parties/2/",
            "id": 2,
            "name": "Republican",
            "color": "#E81B23"
        },
        {
            "url": "http://michiganelections.io/api/parties/8/",
            "id": 8,
            "name": "U.S. Taxpayers",
            "color": "#A356DE"
        },
        {
            "url": "http://michiganelections.io/api/parties/9/",
            "id": 9,
            "name": "Working Class",
            "color": "#A30000"
        }
    ]
}