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

Aggregate2 #403

Closed ZhiXuZhao closed 3 years ago

ZhiXuZhao commented 3 years ago

EECS3311 assignment8 aggregate 2

This pull request applies aggregate pattern in services/location/

create a new file urls.py which has a class URLs with 3 urls as attributes. Class URLs serves as aggregate root and it's attributes are visited in csbs.py, jhu.py, and nyt.py, class CSBSLocationService, JHULocationService, NYTLocationService and URLs form an aggregate.