andreagrandi / andreagrandi/covid-api

Add Italian Protezione Civile data source

Abierto
#46 0 comentarios 0 reacciones 1 asignado Reclamado por @andreagrandi Ver en GitHub
enhancement task
Lenguaje dominante
Python
Estrellas
59
Forks
17
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

Italian Protezione Civile publishes a very accurated dataset every day. The raw data is available at this address: https://github.com/pcm-dpc/COVID-19

To consider this task feature complete, we need:

- create `ITAPCRegion`, `ITAPCProvince`, `ITAPCNationalTrend` models in `db/models.py` using the fields described here https://github.com/pcm-dpc/COVID-19 but translating the field names to english language (the import script will take care of mapping the original Italian name with the english name in the models)
- create `ITAPCRegion`, `ITAPCProvince`, `ITAPCNationalTrend` schemas in `schemas/schemas.py` using the same fields and data types used for the models
- create `ITAPCCRUD` class in `services/crud.py`
- create `get_regions_reports()`
- create `get_provinces_reports()`
- create `get_national_trend_reports()`
- create views in `api/views.py`
- `/v1/itapc/regions-reports/` --> `get_regions_reports`
- `/v1/itapc/provinces-reports/` --> `get_provinces_reports`
- `/v1/itapc/national-trend-reports/` --> `get_national_trend_reports`
- create `import_data_itapc.py` import script to import the existing data

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.