This is a demo of collection variables
https://bruno-vars.vercel.app/
A pet is created using a POST and then fetched via another GET request using the id returned in the first response!
- Variables can be set in one request...
- And used in other requests further down the collection
- Variables are declared and parsed automatically from url and body
- Variables are declared by surrounding with double curly braces
{{ VAR }}
as in Postman - The main innovation is how variables are set after a sucessful response.
Rather than running a generic "post" response script, variables are explicitly set using simple expressions, or more complex expressions using lodash - The distinction between "before request" variables and "post response" variables helps to reason about the workflow and interdependencies between requests.