Is it possible to have multiple collections share the same env variables? I can't make sense of projects and workspaces #6542
Unanswered
victor-marino
asked this question in
Help
Replies: 2 comments
-
Old question but in case someone lands from Google (like I did) Collections are isolated groups of requests, they are meant for use cases like microservices, legacy systems, etc where they share their own URLs, auth, patterns, etc. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Update: We will introduce this soon, most likely we will start work on this in May. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Just wanted to double check if I'm missing something.
I have several environments set up for work: dev, staging, etc. Each of these environments has its own credentials and base URLs. Then I have to work with several APIs, which use paths relative to the base URLs of these environments.
In Postman, environments are defined at workspace level, which makes sense: that means I could import several collections (several APIs) inside the same workspace, and they would automatically share the same environment variables.
In Insomnia, however, it looks like environment variables are defined at collection level? So if I import/create a new collection inside my current project, I would need to duplicate all the environments inside it.
The only other option I can see would be to add all my APIs as folders inside the same collection... but then what's the point of having projects and workspaces above collections?
Am I missing something? Is there no way to define variables at project or workspace level?
Also, I can't for the life of me figure out how to create a new workspace?
My understanding is that the hierarchy goes like this in Insomnia:
On the left hand side, I have a single workspace called "Personal projects", and that's it. I can create new projects inside this workspace (I created the "Work" one as you can see here), but it doesn't look like I have an option to create a new, separate workspace?
Screenshot of what I see: https://i.imgur.com/lhSc8pz.png
Can anyone help me clarify these points?
Beta Was this translation helpful? Give feedback.
All reactions