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

Support for import of servers defined in Open API spec #8

Open
Kiran-B opened this issue Dec 18, 2018 · 9 comments
Open

Support for import of servers defined in Open API spec #8

Kiran-B opened this issue Dec 18, 2018 · 9 comments
Labels
feature New feature request, accepted for probable development server-object

Comments

@Kiran-B
Copy link

Kiran-B commented Dec 18, 2018

Open API spec allows definition of multiple servers. The import of such specs are successful. But Postman appears to choose/use the first server URL.

Requested behavior:

  • Server URL and protocol translates to two variables. Approach may extend to other server variables as defined in spec.
  • Multiple environments are automatically created. one-each for the server definition. The environment defines the values of server variables (like URL and PROTOCOL) as defined in the open api spec.

Multiple server URLs are often used to target multiple deployment environment like Dev, Stage and Prod. Hence the suggestion to creation Postman Environment for each server configuration.

@abhijitkane abhijitkane added feature New feature request, accepted for probable development and removed enhancement labels Aug 19, 2019
@jziggas
Copy link

jziggas commented Jul 6, 2021

I also have a use case of test, stage, and prod server urls. As well as a few product team urls. Importing the OpenApi 3.0.3 document into Postman only generates the first server url defined in the document. This is not useful to teams because individuals will have to manually enter the additional servers urls each time the document is updated, which will lead to individuals saving their own Postman json files rather than importing from the common source of truth.

@fosternb10
Copy link

Added in 2018 but still commenting in 2022. Does an ETA exist for this feature?

@AlexKotsc
Copy link

AlexKotsc commented Feb 18, 2022

Possible fix that solves my use case; I'm not sure how to contribute to this project directly, so I've made changes on a fork.

AlexKotsc@36c959f

@lougeo
Copy link

lougeo commented Apr 13, 2022

I also have this requirement, and would like to see this implemented.

@noryson
Copy link

noryson commented Apr 20, 2022

Please, this implementation is needed. I've had to manually copy the other server urls and associated data into postman environment variable every time. Not nice at all :(

@dgmora
Copy link

dgmora commented Nov 27, 2022

This is a quite necessary for those who generate open API documentation first and then import it to postman. Is there some reason not to implement it? 😢

@glebignatieff
Copy link

+1, this would be very beneficial for our team

@vordimous
Copy link

+1, not having this will be pushing us to use a different solution.

@MarioAquino-MAQU
Copy link

Same issue here. We have a global server definition. But some paths need their own server definition because we have webservices running on different ports. These server definitions are currently not respected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature request, accepted for probable development server-object
Projects
None yet
Development

No branches or pull requests