Created
August 2, 2020 15:51
-
-
Save DanukaPraneeth/3a45de9513043dbf7ff1307a107713de to your computer and use it in GitHub Desktop.
This file contains 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
apiVersion: configuration.konghq.com/v1 | |
kind: KongClusterPlugin | |
metadata: | |
name: response-transformer | |
config: | |
add: | |
headers: | |
- x-new-header:value | |
if_status: [] | |
json: | |
- new-json-key:some_value | |
- another-json-key:some_value | |
append: | |
headers: | |
- x-appending-header:some_appending_value | |
if_status: [] | |
json: [] | |
remove: | |
headers: | |
- x-toremove | |
json: | |
- json-key-toremove:json-key-toremove | |
replace: | |
headers: | |
- x-existing-header:replace_some_new_value | |
if_status: [] | |
json: | |
- source:kong.com | |
enabled: true | |
run_on: first | |
protocols: | |
- http | |
- https | |
plugin: response-transformer-advanced |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment