Created
March 13, 2025 18:36
-
-
Save gszr/ea03eb6bb6c31693126e43994ba10495 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "request-callout", | |
"config": { | |
"callouts": [ | |
{ | |
"name": "c1", | |
"request": { | |
"url": "http://httpbin.org/uuid", | |
"method": "GET" | |
}, | |
"response": { | |
"body": { | |
"decode": true | |
} | |
} | |
}, | |
{ | |
"name": "c2", | |
"request": { | |
"url": "http://httpbin.org/anything", | |
"method": "GET" | |
}, | |
"response": { | |
"body": { | |
"decode": true | |
} | |
} | |
} | |
], | |
"upstream": { | |
"by_lua": "kong.response.exit(200, { uuid = kong.ctx.shared.callouts.c1.response.body.uuid, origin = kong.ctx.shared.callouts.c2.response.body.url})" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment