Tags should be able to reference requests in other collections #7683
Unanswered
nico-martinucci
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We use the OpenAPI spec, and there are a couple current issues that make this rather difficult:
Furthermore, our API requires 3rd party auth, so we need a separate request for getting that token that a environment tag can reference. We could delete the collection each time we want to refresh, but this would lose the custom "Login" route, and would require rebuilding a local environment each time, which gets cumbersome quickly.
My solution for now was to have a separate collection with just the "Login" route, and a base environment that all the collections reference. Each reimport of the OpenAPI spec could be its own collection, and the only manual setup would be selecting the base environment. This works great, EXCEPT it appears as though separate environments cannot use requests from other collections.
Here's my current workspace:
Here's the environment - I want this "token" to reference the login route in the "Login" collection:
Options for "Request" when setting up this tag are empty:
Beta Was this translation helpful? Give feedback.
All reactions