veritus / veritus-backend

1 stars 0 forks source link

Feature/districts #51

Closed Ragnar-H closed 7 years ago

Ragnar-H commented 7 years ago

Status

Ready

Description

Lists Districts and relevant fields needed by frontend

Example | Screenshots

Call localhost:8000/api/v1/districts/ to get the awesome JSON result:

[
    {
        "name": "Reykjavik Norður’",
        "id": 1,
        "abbreviation": "Reykv. N.",
        "politicians": [
            {
                "name": "Andrés Ingi Jónsson",
                "id": 1,
                "initials": "AIJ",
                "party": {
                    "name": "Vinstri Hreyfingin - Grænt Framboð",
                    "id": 3,
                    "website": "http://vg.is/",
                    "created": "2017-04-25T17:41:28Z",
                    "modified": "2017-04-25T17:41:28Z"
                },
                "promises": [
                    {
                        "name": "Some title",
                        "id": 1,
                        "fulfilled": false
                    },
                    {
                        "name": "Something simple",
                        "id": 6,
                        "fulfilled": false
                    }
                ]
            },
            {
                "name": "Birgir Ármannsson",
                "id": 7,
                "initials": "BÁ",
                "party": {
                    "name": "Sjálfstæðisflokkur",
                    "id": 1,
                    "website": "http://xd.is/",
                    "created": "2017-04-25T17:41:28Z",
                    "modified": "2017-04-25T17:41:28Z"
                },
                "promises": []
            },
            {
                "name": "Birgitta Jónsdóttir",
                "id": 8,
                "initials": "BirgJ",
                "party": {
                    "name": "Píratar",
                    "id": 5,
                    "website": "https://piratar.is/",
                    "created": "2017-04-25T17:41:28Z",
                    "modified": "2017-04-25T17:41:28Z"
                },
                "promises": []
            },
            {
...
coveralls commented 7 years ago

Coverage Status

Changes Unknown when pulling 0957ea2920381654a619d9c1edd46622cbe56af0 on feature/districts into on master.

coveralls commented 7 years ago

Coverage Status

Changes Unknown when pulling 403b86b61bdc8e2d5f96eea6da4c27fe92263b3a on feature/districts into on master.