Announcements
The Google Cloud Community will be in read-only from July 16 - July 22 as we migrate to a new platform; refer to this community post for more details.
Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

How do we prematurely end a proxy endpoint flow?

I have an API proxy and I'm using a ServiceCallout policy to call another endpoint within the same organization in another API Proxy. After receiving the response from the callout, I would like to finish the flow instead of allowing it to continue and hit the original endpoint.

I tried to use a Fault Raise to stop the flow but that's an anti-pattern https://docs.apigee.com/api-platform/antipatterns/raise-fault-conditions#using-raisefault-policy-to-....

Thanks.

Solved Solved
0 5 812
1 ACCEPTED SOLUTION

Alex why would you do that, redirecting traffic from one endpoint to another?

What is the use of the original target endpoin in the proxy which is using service callout?

If not fault rules, then try using RouteRules.

After getting a response from Service Callout policy set/create conditions using Javascript or use any variable from Service callout response to enable a Route Rule to call no-target

https://community.apigee.com/articles/2818/configure-a-proxy-not-routing-it-to-any-target-ser.html

View solution in original post

5 REPLIES 5