Lets say i am developing a Nestjs app that gives users latest weather details. I want to wrap multiple weather APIs and design it in such a way that i can easily add more APIs later. User can select to get data from multiple APIs, the receiving data structure should be same. So i am looking for recommendations/suggestions for structure of my classes. Like i want to have same methods and their parameters and their return type. So the Api selection is somehow handled dynamically and the right API is called as required
Aucun commentaire:
Enregistrer un commentaire