Configuration file for Insomnia.rest API tool
Not a Bannerbear user yet? Sign Up Now 🐻
This config is dependent on you having some test data in your Bannerbear account already. So for testing purposes via the Bannerbear web-based API console create:
- At least one image template, and one image
- At least one template set, and one collection
- At least one video template, and one video
You are now ready to fire requests from Insomnia.
- Download or clone this repo locally
- Create a file named
keys.env
- use the templatesample_env.env
and add your own API key - Install Insomnia
- Install the plugin named
insomnia-plugin-dotenv
and follow the instructions in (2) here - Create > Import from File, and choose the JSON file from the repo to import
- In Insomnia under Manage Environments ensure that the API Key is being correctly pulled from your local
keys.env
file
You can now run API requests and should see the following selection of endpoints:
There are no hard-coded object IDs in this config. This Insomnia setup uses cascading data from previous requests. So for example, in order to send the "Create an Image" request you will first need to send the "List all Images" request, in order to load variables into the Insomnia environment.