Closed lprichar closed 2 years ago
Fixes #176 Fixes #202
Adds a new endpoint for retrieving elections along with their name and the number of ballots they contain (both spoiled and cast). Results sorted reverse chronologically.
Expected: a list of elections like:
{ "status": "success", "message": null, "elections": [ { "election_id": "hamilton-general-election-simple", "name": "Hamiltion County General Election", "state": "OPEN", "number_of_guardians": 5, "quorum": 3, "cast_ballots": 7, "spoiled_ballots": 2 } ] }
Issue
Fixes #176 Fixes #202
Description
Adds a new endpoint for retrieving elections along with their name and the number of ballots they contain (both spoiled and cast). Results sorted reverse chronologically.
Testing
Expected: a list of elections like: