SL-edi / covid-visualisation

0 stars 0 forks source link

Create a class to fetch data from a given api #15

Closed tjanowsk closed 4 years ago

tjanowsk commented 4 years ago

We want to fetch the data of the number of infected/dead/recovered for a given country or worldwide from a third-party api. We want to have a flexibility to use a different api if needed. To that end, the returned object should have the same format regardless of api contacted, e.g.

[
  {
    "date": "2020-08-04T00:00:00Z",
    "infected": 999,
    "dead": 9,
    "recovered": 99 
  },
  ...
]
AdrianBorg commented 4 years ago

Leaving a comment, so I don't forget to bring it up in the call. These are probably thinking too far ahead and could be their own tickets later on if we want them;

tjanowsk commented 4 years ago

My views: