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

A country class was created to implement aggregate design pattern #402

Closed shaynmorgan closed 3 years ago

shaynmorgan commented 3 years ago

I created a country class that will hold all the variables such as country code, country population, continent. Therefore if you want to access these variables to change them you must access them through the country class which is the aggregate root.