I am looking for some advice on the business requirement.
We are exposing one api to allow the investors search details based on the PAN number.
- If the pan number is present in our system, we will return the details.
- If the pan number is not present, we wil call an api and check if the details are present. If present we will create a record in our system and return the response.
One catch here is that the api call is based on number of validations. We decide whether to call the api1 or api2 or skip calling the apis and throw errror.
What would be best design pattern for this?
Aucun commentaire:
Enregistrer un commentaire