This website uses Cookies. Click Accept to agree to our website's cookie use as described in our Privacy Policy. Click Preferences to customize your cookie settings.
I have 2 target end points. How can I use Java script policy to route
conditionally? Something like -if(response.status.code = "404 || 400 ||
502") {route to Target End point 1} else {// Defaultroute to Target End
point 2}
Thanks @Nagashree B. Now everything is working as expected Few
questions though -In Target EndPoints why are we setting 4xx and 5xx as
success code?1xx,2xx,3xx,4xx,5xxIs it to continue
with calling servicecallout in case of 4xx or 5xx?
Thanks a lot @Nagashree B. Seems I am very close to the solution Just
one more thing. I need to pass all request parameters and headers
(getting from client app for calling caching service) to the actual
service. How can I update assign-message poli...
Thanks @Nagashree B. Apigee response caching was the best solution but
we could not use it because response size is big. I tried service call
out policy with DefaultFaultRule and seems its getting called. But how
can I send back response from service...
Thanks @Nagashree B. My use case is - I have a proxy where my target end
point is a cache service which is returning response from cache. If
anything goes wrong in cache service (e.g. if service is down) then I
need to call actual service to get the ...