Created
March 12, 2025 17:43
-
-
Save gszr/1100adf6de5205615a720954a2e8091a 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": "callout1", | |
"request": { | |
"url": "http://httpbin.org/anything", | |
"method": "GET", | |
"query": { | |
"custom": { | |
"id": "$(kong.request.get_body().id)" | |
} | |
} | |
}, | |
"response": { | |
"body": { | |
"decode": true | |
} | |
} | |
} | |
], | |
"upstream": { | |
"body": { | |
"forward": false, | |
"custom": { | |
"id": "$(callouts.callout1.response.body.args.id)" | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment