Open helloanoop opened 1 year ago
This sounds very interesting. I bet a lot of users have a more complex use case, but mine is simply getting a bearer token for my >400 requests. Currently, I manually run the request from time to time to get the bearer token and save it to an env variable. But it would be quite comfortable to have an option to define an environment variable, that is "just a link" to another request with some filters on the response. I guess Insomnia can do stuff like this. On the other hand: This creates some clutter and it might harm the very clean structure bruno has currently. Keep up the good work :)
This is one of the feature I am really hoping to see soon in Bruno ❤️
Interesting idea! If we find a way to incorporate "check-status-until-OK-then-continue" kind of workflows, then we would not need .setNextRequest()
(https://github.com/usebruno/bruno/issues/534):
Any updates on this feature ? Looking forward to this. Happy to contribute as well
@balajiv113 This is on our roadmap for Q4 (Oct-Dev) 2024
It is a pretty common use case for a user to have a set of common requests to be executed before running a request. Examples includes: registration and login, setting up the state of the cart etc.
Here is what I am thinking. In Bruno, every folder has a
index.bru
file which contains the common things to be run across all the requests under it like auth, headers etc. To indicate that a folder is a workflow, we add a property calledworkflow: true
inside the meta tagAnd other requests that need to run a workflow before or after a request can do like below
A request can execute multiple workflows by specifying the workflows as a comma separated list.