aclu-national / elections-api

An API for retrieving locally-relevant structured data about US elections
https://elections.api.aclu.org/v2/
MIT License
30 stars 4 forks source link

add support for querying state endpoint by state abbreviation #52

Closed alisonag closed 4 years ago

alisonag commented 4 years ago

Fixes #51

This adds support to the /v2/state endpoint for a new query param state that takes the abbreviation of a state, e.g. ny, as opposed to a lat and lng.

It's a bit repetitive to say /v2/state?state=ny but this follows the convention used for /v2/pip and /v2/calendar.