Laeyoung / COVID-19-API

API Service for tracking the COVID-19
https://ainize.ai/laeyoung/covid-19-api
MIT License
121 stars 32 forks source link

The timeseries could be improved #15

Open dudepants opened 4 years ago

dudepants commented 4 years ago

You're using dynamic dates for the names of the {confirmed,deaths,recovered} objects in a timeseries array.

The timeseries array should really have objects of type {date, confirmed, deaths, recovered}. To consume this in mobile, you'd have to pre-define all the possible dates and have them nullable or parse the timeseries as a string and split up the values.