veritus / veritus-backend

1 stars 0 forks source link

Votes and parliament member added to vote record response #78

Closed AriHrannar closed 6 years ago

AriHrannar commented 6 years ago

Status

Ready

Description

Payload now looks like:

 {
            "case": 13,
            "althingi_id": 54781,
            "yes": 13,
            "no": 41,
            "didNotVote": 5,
            "althingi_result": "Fellt",
            "votes": [
                {
                    "parliament_member": {
                        "name": "Brynjar Níelsson",
                        "id": 16,
                        "initials": "BN",
                        "districtNumber": 5,
                        "party": 1,
                        "district": 3
                    },
                    "althingi_result": "fjarverandi",
                    "vote_record": 1
                },
         ]
}

Which will make it easier to map each vote to a parliament member card to show how each member voted