Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update/transformer + typo fix #270

Merged
merged 3 commits into from
Aug 26, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/install/source.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ redirect_from: /install/compile/
./configure \
--lua-suffix=jit \
--with-lua=/usr/local/openresty/luajit \
--with-lua-include=/usr/loca/openresty/luajit/include/luajit-2.1
--with-lua-include=/usr/local/openresty/luajit/include/luajit-2.1
```

Finally, the [Serf v{{serf_version}}](https://www.serf.io/) executable should be available in one of `/usr/local/bin` or `/usr/bin`. You can use it from a custom location assuming you configure the Kong's `serf_path` property accordingly.
Expand Down
5 changes: 4 additions & 1 deletion app/plugins/request-transformer.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,17 @@ Configuring the plugin is as simple as a single API call, you can configure and
```bash
$ curl -X POST http://kong:8001/apis/{api}/plugins \
--data "name=request-transformer" \
--data "config.add.headers=x-new-header:some_value, x-another-header:some_value" \
--data "config.add.headers[1]=x-new-header:some,value" \
--data "config.add.headers[2]=x-another-header:some,value" \
--data "config.add.querystring=new-param:some_value, another-param:some_value" \
--data "config.add.body=new-form-param:some_value, another-form-param:some_value" \
--data "config.remove.headers=x-toremove, x-another-one" \
--data "config.remove.querystring=param-toremove, param-another-one" \
--data "config.remove.body=formparam-toremove, formparam-another-one"
```

Note: if the value contains a `,` then the comma separated format cannot be used. The array notation must be used instead.

`api`: The `id` or `name` of the API that this plugin configuration will target

You can also apply it for every API using the `http://kong:8001/plugins/` endpoint. Read the [Plugin Reference](/docs/latest/admin-api/#add-plugin) for more information.
Expand Down
5 changes: 4 additions & 1 deletion app/plugins/response-transformer.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,16 @@ Configuring the plugin is as simple as a single API call, you can configure and
```bash
$ curl -X POST http://kong:8001/apis/{api}/plugins \
--data "name=response-transformer" \
--data "config.add.headers=x-new-header:some_value, x-another-header:some_value" \
--data "config.add.headers[1]=x-new-header:some,value" \
--data "config.add.headers[2]=x-another-header:some,value" \
--data "config.add.json=new-json-key:some_value, another-json-key:some_value" \
--data "config.remove.headers=x-toremove, x-another-one" \
--data "config.remove.json=json-key-toremove, another-json-key" \
--data "config.append.headers=x-existing-header:some_value, x-another-header:some_value"
```

Note: if the value contains a `,` then the comma separated format cannot be used. The array notation must be used instead.

`api`: The `id` or `name` of the API that this plugin configuration will target

You can also apply it for every API using the `http://kong:8001/plugins/` endpoint. Read the [Plugin Reference](/docs/latest/admin-api/#add-plugin) for more information.
Expand Down