A REST API for the UK COVID-19 data
2.3K
A REST API for the UK COVID-19 data gathered by tomwhite. There is also a REST API for the US COVID-19 data gathered by nytimes.
hub.docker.com/repository/docker/desholmes/covid-19-uk-api.
A hosted version version of the API can be found at covid-19-uk-api.dholmes.co.uk.
The following starts a local server running on port 8000:
docker run -it -p 8000:8000 desholmes/covid-19-uk-api:1.0.3
| URL | Description | Hosted Link | Local Link |
|---|---|---|---|
| /uk/totals | All UK totals: tests, confirmed cases and deaths | hosted | local |
| /uk/totals/?date=2020-03-15 | UK totals for date (20-03-15): tests, confirmed cases and deaths | hosted | local |
| /uk/cases | Total cases by local authorities for the UK: country, area code, area and total cases | hosted | local |
| /uk/cases/?date=20-03-15 | Total cases for date (20-03-15) by local authorities for the UK: country, area code, area, and total cases | hosted | local |
| /scotland/totals | All Scotland totals: tests, confirmed cases and deaths | hosted | local |
| /scotland/totals/?date=20-03-15 | All Scotland totals for date (2020-03-15): tests, confirmed cases and deaths | hosted | local |
| /wales/totals | All Wales totals: tests, confirmed cases and deaths | hosted | local |
| /wales/totals/?date=2020-03-15 | All Wales totals for date(2020-03-15): tests, confirmed cases and deaths | hosted | local |
| /northern-ireland/totals | All Northern Ireland totals: tests, confirmed cases and deaths | hosted | local |
| /northern-ireland/totals/2020-03-15 | All Northern Ireland totals for date (2020-03-15): tests, confirmed cases and deaths | hosted | local |
Development takes place inside a docker container to:
make build-cold stand your local env up from scratch (not to be used for PROD)covid_19_uk will cause the app to reloadCTL+c to stop the docker containerIf you want to configure the application step-by-step follow the steps below:
make setup: To create the .env file from .env-dist.env:
python3 manage.py runserver, with live reloading of files changed in covid_19_uk (default 1)add_me with a random string (default 'add_me')make build: To create the docker imagemake run: To run the docker image as a containermake build-run1.0.6: Added sma_7 & deaths_daily and updated to Django 3.0.71.0.5: Bugfix for caching1.0.4: Added CORS allow all headers, caching, ga tracking, GNU GENERAL PUBLIC V3 LICENSE1.0.3: Added hosted API1.0.2: Added default port1.0.1: Added endpoints and docs for available data sources1.0.0: Base repo with DBless Django appContent type
Image
Digest
Size
96.4 MB
Last updated
about 6 years ago
docker pull desholmes/covid-19-uk-api