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.
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;
Do we want to make a request for all data when loading the app, then use that data, or have calls for each small request (eg. call for data for uk data today then call for uk data yesterday Vs call for all data at start)?
Do we want to cache results?
Should the service use multiple apis (for fallbacks in case one is down) or a single one.
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.