banjtheman / defundthepolice

Defund The Police
Apache License 2.0
20 stars 30 forks source link

BUG: API does not return data #44

Closed banjtheman closed 4 years ago

banjtheman commented 4 years ago

What is the Task

The API currently does not return data due to using a different schema

Why do we want to do this

In order for the API to work

How can I get started?

The api is curretly looking for the states table, but it doesnt exist https://github.com/banjtheman/defundthepolice/issues/41#issuecomment-703915660

it needs to be updated to use budget_data https://github.com/banjtheman/defundthepolice/blob/main/CreateDB.sql

Definition of Done

Can run these commands

docker-compose -f docker-compose-api.yml up -d
curl localhost:9000/health
#reutrns health check

curl "localhost:9000/getdata?state=VA&county=Arlington"
#returns data
trejavu commented 4 years ago

Hi! I’d like to take this one.

banjtheman commented 4 years ago

fixed by #51