hi All,
I have two service callouts to internal API Proxy. They both are placed in the request flow. When they run, the first call resource path gets appended to the second, e.g. 1st /test and then the second gets to become /another_resource/test
I have tried solving it using, the context.setVariable("target.copy.pathsuffix", false) using a JS Policy, as well as on AssignMessage in the <Set> section, but it does not seem to fix it.
Can you help.
Thanks
Solved! Go to Solution.
@Jared, Your question is not that clear but please check the following proxy
may be it might help
How this proxy works:
1st I have an assign message that attaches my api proxy base path to the service callout policy(s),
both of my targeted proxies have different target endpoint mock target and httpbin
and after i receive my response use extract variable and assign message policy to get the values I require.
Sorry i am not that good at explanations.Find attached my proxy.