Hello,
I have a scenerio where I need to get the billing acounts from a CRM based on the id of a client:
The proxy endpoint :
Get {basePath}/cutomer/{id}/billingAccount
The backend can only first return the billing account(s) id(s) with an SQL-like query in the query params :
The CRM endpoint :
Get {basePath}/query?select+billingaccountid+from+billingaccount+where+clientid+=+'theid'
You guessed it, it's SQL but you replace the spaces with '+'.
That request will return a json with the billing acount(s) id(s). So i need to :
- Parse the json
- Get the id(s)
UNTIL THIS POINT I KNOW HOW AND WHAT TO DO
- Resend one or more requests to the CRM Api using the id(s).
Get {basePath}/customer/{billingacountId}
- Recuperate the new response(s)
- Fashion the response to the client.
My question is :
How to send one or multiple requests after the initial request, after getting the id(s) i need.
If my explanation is not clear I can try to give you more details or to phrase it better.
Thank you, long live the community ❤️
@dchiesa1 I need your wisdom