It could probably be done in Javascript but I'm trying to avoid this if possible.
For example, if I have a request coming into my API proxy:
https://edward-test.apigee.net/v1/books
And then my API proxy has a Service Callout Policy to a different API proxy endpoint eg:
https://edward-test.apigee.net/v1/libraries/bookAvailability
The problem is, the variable proxy.pathsuffix in the second API proxy has the value:
/bookAvailability/v1/books
instead of:
/bookAvailability
I can't fiddle around with the target.url using an Assign Message policy since the Service Callout is done in the proxy request flow.
Solved! Go to Solution.
Dear @Edward ,
I see proxy.pathsuffix as "/bookAvailability" in my second proxy when called same in first proxy using service callout policy. Please find attached API Proxies.
I have tested same using trace tool & works as per design.
firstproxy-rev1-2016-01-18.zipsecondproxy-rev1-2016-01-18.zip