Dynamic aggregation of multiple backend calls based on request parameters/header #14432
-
Hi, I need to expose a single endpoint, for example: At runtime, Kong should split that CoopCode parameter into its individual values (111, 222, 333), and for each one:
Finally, Kong should aggregate all of those individual responses into one single JSON payload (for instance, an array of results) and return it to the client. My questions are:
Thanks in advance for any guidance or pointers! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I suppose you need a custom plugin to do that. A starting point could be "resty.http" module and |
Beta Was this translation helpful? Give feedback.
I suppose you need a custom plugin to do that. A starting point could be "resty.http" module and
kong.response
PDK calls.