This a PoC for a plugin written in Go for Kong.
It will read a config and add a header to your request.
- Docker
- Docker compose
- Deck
- Run the following command in your terminal:
$ docker compose up
- At a new tab, sync deck:
$ deck sync --kong-addr http://0.0.0.0:8001 -s ./routes.yaml --verbose 2
- Call your API and check the headers of the response:
$ curl -v --location 'http://0.0.0.0:8000/test'