Re: [caciviclab/disclosure-backend-static] /office_election/:office_election_id should include candidate total_contributions (#17)

1 view
Skip to first unread message

Tom Dooner

unread,
Sep 17, 2016, 10:30:10 PM9/17/16
to caciviclab/disclosure-backend-static

Closed #17 via #19.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Aaron D Borden

unread,
Sep 20, 2016, 3:35:50 PM9/20/16
to caciviclab/disclosure-backend-static
$ curl -v 'https://disclosure-backend-static.tdooner.com/office_election/1'
{
  "id": 1,
  "contest_type": "Office",
  "name": "School Board District 1",
  "candidates": [
    {
      "id": 26,
      "name": "Donald Macleay",
      "photo_url": null,
      "website_url": null,
      "twitter_url": "@donmacleay",
      "first_name": "Donald",
      "last_name": "Macleay",
      "ballot_item": 1,
      "office_election": 1
    }
    // .... snip
  ],
  "ballot_id": 1
}

In order to render the list of candidates with the total collected, each candidate object should include a total_contributions field.

Reply all
Reply to author
Forward
0 new messages