I have a flow set up that begins with HTTP in node that receives requests from a .NET client. The parameters on the GET request are processed through a function node and then passed into an HTTP request node with authentication which calls into an external HTTP endpoint. The flows works fine and passes the response all the way back to the .NET client. My issue is that I would like to change this flow so that it is not simply a pass through. I would like to capture the response in the flow and then create my own response to pass back to the client. I am not sure how to intercept the response.
Thanks for any advice!
Here is an empty shell that represents the general architecture that I am speaking about:
[{"id":"2c221e71.ca7062","type":"http
request","z":"c6b0bb8e.3be0c8","name":"","method":"GET","ret":"txt","url":"","x":160,"y":660,"wires":
[["8d071770.4e79d8"]]},
{"id":"8d071770.4e79d8","type":"function","z":"c6b0bb8e.3be0c8","name":"","func":"\nreturn
msg;","outputs":1,"noerr":0,"x":350,"y":660,"wires":[["3ccfd54e.c3e80a"]]},
{"id":"3ccfd54e.c3e80a","type":"http
request","z":"c6b0bb8e.3be0c8","name":"","method":"GET","ret":"txt","url":"","x":550,"y":660,"wires":
[["9bec86b7.399c68"]]},{"id":"9bec86b7.399c68","type":"http
response","z":"c6b0bb8e.3be0c8","name":"","statusCode":"","headers":{},"x":740,"y":660,"wires":[]}]