chilcano commented on issue #9928:
URL: https://github.com/apache/apisix/issues/9928#issuecomment-1660117949

   > Why do you want access the response body and headers? thinking
   If you have very complex requirements you might have to write your own 
plugin.
   
   Thanks @shreemaan-abhishek for your support.
   
   I've tried to extend existing example available here [Chaining API requests 
with API Gateway 
Demo.](https://github.com/Boburmirzo/apisix-plugin-pipeline-request-demo).
   
   I've created 2 plugins (`api1-plugin`  and `api2-plugin` ) and use both in 
the same route.
   The `api1-plugin` call to 3rd party `api1` and the `api1` json response is 
used to make a call to 3rd party `api2` through `api2-plugin`.
   
   In simple words, I'm trying to chain 2 APIs, however the challenge I'm 
facing is how to retrieve the response of 1st plugin from 2nd plugin.
   
   I've tried `ngx.var.*` and `ngx.ctx.*` to share info from 1st to 2nd plugin 
and that didn't work.
   
   I'm using 2 plugins because each plugin is calling different upstreams with 
different requests.
   
   Any idea on how get this?
   Appreciate your support.
   Regards.
   
    


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to