requestBody.Modifier for Krakend
This plugin allows you to modify the request body before sending it to the backend.
Usage
If you have krakend installed, you can use the following command to create the plugin:
$ go build -buildmode=plugin -o krakend-request-body-modifier.so github.com/shipink/krakend-request-body-modifier
When after the plugin is created, you can use it in your config:
"extra_config": {
"plugin/req-resp-modifier": {
"name": [
"requestBody.Modifier"
],
"requestBody.Modifier": {
"keys": ["name","language"],
"values": ["Shipink","Golang"]
}
}
}
You can find example in the krakend.json file also.
NOTE: Plugin and krakend should be build with the same environment.