Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inherit environment variables with default values #2166

Open
1 task done
stebberg opened this issue Apr 25, 2024 · 2 comments
Open
1 task done

Inherit environment variables with default values #2166

stebberg opened this issue Apr 25, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@stebberg
Copy link

stebberg commented Apr 25, 2024

I have checked the following:

  • I've searched existing issues and found nothing related to my issue.

Describe the feature you want to add

I have a suggestion that I think might be very interesting (postman also have similar feature reqs).

  1. Add/change all environment variables (the names) in a base-environment-page and set a default value.
  2. Then, changes the values (only values!) in those environments that requires special values, all other variables will keep the base's default value.

BONUS: Be able to inherit environments in a tree where the Base is the top. For instance, if you have 3 environments DEV, STG, PRD. Now, maybe you have an API-gateway for ACC and PRD which requires the request to have another baseurl and an api-key but everything else the same. In this case, I would like to have these environments: DEV, STG, STG-GW (inherited from STG but with a couple of special values), PRD, PRD-GW (inherited from PRD but with some changes).

The problem today, it's a lot of work to keep the environments up to date and it feels kind of ridiculous that you need to add the same variable 5 times if you have 5 environments. Because of course the variables must exist in all environments.

Mockups or Images of the feature

Have no images because I don't know any rest client that supports this :-)

@stebberg stebberg added the enhancement New feature or request label Apr 25, 2024
@amalrajvinoth
Copy link

FYI insomnia has base environment

@stebberg
Copy link
Author

FYI insomnia has base environment

OMG, haha, that's kind of embarrassing coz I've tested insomnia as well :-) but did not find it suitable. Thx for that info though, interesting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants