Base Environment Data #345
Closed
Panda-Sharp
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
|
Hi there, thanks for the great suggestion. I definitely see the value in having a "Base" environment. We added it to our roadmap. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I don't know if it exist already, but I didn't find an easy way to achieve this, basically I would like to have an option to have a Base/Shared environment data, so I can use the following syntax
{{ env.base.url }}with no need to redeclare it in all all single environments Data json, plus would be nice to be able to overwrite it in specific envs.Currently we can use
user variablesbut, they're not shared in the project files and they use a different syntax `{{ vars.shared.base.url }}Summary:
Setup
Base env data:
Dev env data:
Prod env data:
Invoke a REST api with
{{ env.base.url }in settings > endpoint fieldWith Dev env selected > https://dev.myapp.com
With Prod env selected > https://www.myapp.com
Please feel free to ping me if something is not clear, thanks for your amazing job!
Beta Was this translation helpful? Give feedback.
All reactions