ExpDev07 / coronavirus-tracker-api

🦠 A simple and fast (< 200ms) API for tracking the global coronavirus (COVID-19, SARS-CoV-2) outbreak. It's written in python using the 🔥 FastAPI framework. Supports multiple sources!
https://coronavirus-tracker-api.herokuapp.com
GNU General Public License v3.0
1.59k stars 323 forks source link

Second aggregate completed #418

Closed bjy19 closed 3 years ago

bjy19 commented 3 years ago

I have done changes in the app/data/init.py file. First I created root class called DataSource. In this class I have added some object references of following classes JhuLocationService, CSBSLocationService, NYTLocationService. And when we call methed get of the DataSource, it will use appropriate reference and return accordingly.