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! Go to 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