Community Plugin: This plugin is developed, tested, and maintained by a third-party contributor.
This plugin transform the response sent by the upstream server on the fly on Kong from json to xml,before returning the response to the client.Because of Nginx’s internals, the
Content-Length header will not be set when transforming a response body.
$ git clone https://github.com/kakascx/apig-response-transform /opt/kong/plugins
$ cd /opt/kong/plugins/apig-response-transform
$ luarocks make
This plugin is compatible with requests with the following protocols:
This plugin is compatible with DB-less mode.
In DB-less mode, Kong Gateway does not have an Admin API. If using this
mode, configure the plugin using declarative configuration.
It is recommended to use in dbless mode.
Enabling the plugin on a service
Enabling the plugin on a route
Enabling the plugin globally
A plugin which is not associated to any service, route, or consumer is
considered global, and will be run on every request. Read the
Plugin Reference and the Plugin Precedence
sections for more information.
Here's a list of all the parameters which can be used in this plugin's configuration:
|The name of the plugin to use, in this case
|The ID of the Service the plugin targets.
|The ID of the Route the plugin targets.
|Whether this plugin will be applied.
Default value: xml
Describe the format of the response format.