You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
which then shows up in Postman Like: "{{baseUrl}}/create/"
Is there a way to force the generated collection to not amalgamate the variables... really we'd like the URL in postman to look like: {{url}}/content/create/
The text was updated successfully, but these errors were encountered:
@JaredAAT ATM, We don't have any way to achieve this. For now, we can treat it as a feature request but I'd like to understand your use-case and why the need of showing {{url}}/content/create/ instead of {{baseURL}}/.
Hey @VShingala. So we already have a postman environment setup where we have an environment variable as {{url}} that relates to https://api.example.com. So when we generate postman collections and import them, it'd be good to have them match our current postman environment. Also I feel that obscuring the path content (API endpoint) within {{baseURL}} kinda makes the file less useful.
@JaredAAT Hmm, So our understanding at the moment is that as the entire {url}/content is mentioned as baseUrl, and as such we use it as is from definition in the generated collection. Basically, as baseUrl is common across all endpoints it's used as such. If someone wishes to have /content mentioned then one can just define https://api.example.com as baseUrl and keep /content as prefix to all paths e.g. /content/some-path under paths.
But yes, this differs from users to users according to their use case.
consider an OpenAPI v3.0.3 server specification like:
this will make the OpenAPI to postman convertor to create a top level variable in the postman collection like:
and a url on a request like:
which then shows up in Postman Like: "{{baseUrl}}/create/"
Is there a way to force the generated collection to not amalgamate the variables... really we'd like the URL in postman to look like:
{{url}}/content/create/
The text was updated successfully, but these errors were encountered: