problem description
due to the needs of the project, to interface with N third-party API, and then convert the data returned by the request API into the data structure of your own project, the third API may be an encapsulated SDK, a URL, or a restful-style API.
which design patterns would be better for development in order to facilitate future expansion and maintenance?
now I think of the combination of abstract factories and templates,
use abstract factory pattern to extract common parts and implement
use template pattern to implement abstract method
Please discuss what else is better.