Skip to content
This repository was archived by the owner on Mar 4, 2018. It is now read-only.
This repository was archived by the owner on Mar 4, 2018. It is now read-only.

Make a new /results endpoint #47

@elijahverdoorn

Description

@elijahverdoorn

Make a new results table

  • should have electionId, positionId, winning candidateId

Attach to the current electionId middleware the results data if the election is over - this should prevent issues with people mass-querying the endpoint for the data right after the election ends.

JSON structure sent to the client when requesting all results for a given election should be something like:

{
    electionName: <name>,
    results: [
        {
            positionName: <name>,
            winner: <name>,
            losers: [ <array of names> ]
        }, ...
    ]
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions