Hi,
Been spending a few days trying to make this work, getting a little frustrated here 🙂
I am developing a "Java Callout" that I'd like to invoke from the Flow Hooks mechanism so this Java Callout runs for every API Proxy request/response. In this Callout, I have to:
I have a few questions:
I need to grab some headers that only exist in the Client request, before it is modified by any API Proxy,
But I am also interested in headers and body that will be sent to the client after the target backend server replies etc... In other words, I believe I have to use both Pre-Proxy and Post-Proxy Flowhooks.
I want to gather some data from the request, store it somewhere until the response arrives, gather some data from response, apply some logic, and communicate with external server. This has to happen for each transaction on any API Proxy affected by the flow hook.
My questions:
I have read the docs, I have seen the solution by @dino where a wrapper function first check the properties provided by the policy on instantiation, and it returns a curly braced string, fetch it using getVariable. It doesn't work for me.
Thanks!
ED.