Our long-term goal is to make vaxx.tw an API that can be updated by anyone to make sure we have real-time data.
This PR:
Adds an API endpoint "/hospital" that takes POST requests that update the hospital.
Adds two env variables: API_URL and API_KEY to determine whether or not a request is accepted by the app, and what URL that local_scraper sends requests to.
Modifies local_scraper to send post requests instead of updating Redis instance directly.
Test plan:
With the instance API_URL set to localhost:5000 locally, and a locally generated API key, confirm everything is working.
Context:
This PR:
Test plan: With the instance API_URL set to
localhost:5000
locally, and a locally generated API key, confirm everything is working.