2020-04-26 20:33:39 +00:00
# Kong Declarative Config (Insomnia Plugin)
[![Npm Version ](https://img.shields.io/npm/v/insomnia-plugin-kong-declarative-config.svg )](https://www.npmjs.com/package/insomnia-plugin-kong-declarative-config)
2021-08-20 17:50:41 +00:00
This is a plugin for [Insomnia ](https://insomnia.rest ) to add the ability to generate Kong Declarative Config.
2020-04-26 20:33:39 +00:00
## Installation
Install the `insomnia-plugin-kong-declarative-config` plugin from Preferences > Plugins.
2020-05-12 21:22:55 +00:00
2021-08-27 03:44:01 +00:00
![plugins ](./assets/plugins.png )
2020-05-12 21:22:55 +00:00
## Usage
Once this plugin is installed, open a document with an OpenAPI specification and navigate to the `Design` view.
If installed correctly, a button titled `Generate Config` will appear in the header (you may need to reopen the document).
2021-08-27 03:44:01 +00:00
![generate config ](./assets/generateConfig.png )
2020-05-12 21:22:55 +00:00
2021-08-27 03:44:01 +00:00
Click on this button to open a modal, showing all of the config generator plugins installed and their output. From here, you can copy the config to your clipboard and execute on your platform.
2020-05-12 21:22:55 +00:00
2021-08-27 03:44:01 +00:00
![modal ](./assets/modal.png )
2020-05-12 21:22:55 +00:00
This config will regenerate each time you click on the button, so that changes in your specification are included.