I am working on a spring boot project where i need to call different provider api based on the vendor that the client is interested.I have the details of the API stored in the database.
The client request this service to get the data by passing a standard request plus the vendor name.The service internally will call vendor api by converting the standard request to the request model required by the vendor API.Each vendor API has different one is Rest based API(HTTP) and other is SOAP(SOAP) based api and the authentication mechanism also differs.I was wondering any pattern /open source code i can refer to optimise the solution.
Currently, i have vendor specific implementations and client classes to perform this functionality. I was wondering any other patterns/open source code present to solve the same use case.
Aucun commentaire:
Enregistrer un commentaire