Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Is there a way to stop the proxy pathsuffix from being appended to the uri of a service callout policy in the proxy request flow?

Not applicable

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 Solved
0 6 953
1 ACCEPTED 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.

1810-screen-shot-2016-01-18-at-121227-pm.png

1811-screen-shot-2016-01-18-at-121238-pm.png

I have tested same using trace tool & works as per design.

firstproxy-rev1-2016-01-18.zipsecondproxy-rev1-2016-01-18.zip

View solution in original post

6 REPLIES 6