🦠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!
Why I did it?
In order to implement Creational pattern I used the sub design of Factory Method in which i had to provide an interface for creating objects in a superclass, but allowing subclasses to alter the type of objects that will be created.
How I did it?
I created a new interface class for location to implement Creational Pattern, where the interface for location class is missing so we just added and interface class in "File Path: app location init.py" to serialize the location into a dict.
Why I did it? In order to implement Creational pattern I used the sub design of Factory Method in which i had to provide an interface for creating objects in a superclass, but allowing subclasses to alter the type of objects that will be created.
How I did it? I created a new interface class for location to implement Creational Pattern, where the interface for location class is missing so we just added and interface class in "File Path: app location init.py" to serialize the location into a dict.