usebruno / bruno

Opensource IDE For Exploring and Testing Api's (lightweight alternative to postman/insomnia)
https://www.usebruno.com/
MIT License
27.41k stars 1.26k forks source link

Global environments at collection level #3415

Open g54799 opened 1 week ago

g54799 commented 1 week ago

I have checked the following:

Describe the feature you want to add

Global environment at collection level so when we share collections, those variables are bundled.

Mockups or Images of the feature

-

helloanoop commented 1 week ago

Hey @g54799 !

When sharing collections, Collection Environments are included. Is there any reason why the variables couldn’t be stored directly within the collection environment itself?

g54799 commented 1 week ago

E.g. I have these 3 collection environments: DEV, TEST, PREPROD I would like to be able to define variables common to all 3 environments, so I do not have to replicate them 3 times. Currently I can define them in a global environment but when I export the collection, those global environments are not bundled in the export. So I would like to have a global environment at collection level.