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

Ability to Select Server? #1

Open
homestar9 opened this issue Nov 10, 2022 · 2 comments
Open

Ability to Select Server? #1

homestar9 opened this issue Nov 10, 2022 · 2 comments

Comments

@homestar9
Copy link

homestar9 commented Nov 10, 2022

This extension is awesome! Thank you for creating it. I was curious if there was a way to select from a list of servers defined in the Swaggerfile servers key? It's common to have both production and development environment servers present.

image

The default Swagger UI shows a dropdown like this:
image

@Sawmonabo
Copy link

Were you able to test around with the script implementation? Using the RedocTryItOut.init(), how did you get the options parameter to work and take multiple arguments?

@homestar9
Copy link
Author

Hi @Sawmonabo, I couldn't figure out how to get Redoc to show a list of all servers in a dropdown. RedocTryItOut sends all requests to the first server in the servers array. There doesn't seem to be a way to select which server you want to send requests to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants