-
Notifications
You must be signed in to change notification settings - Fork 338
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
tryItOutEnabled #300
Comments
I'm a little confused by this request. I believe that the Try It Out plugin is enabled by default. I also believe that the two click operation, click "Try It Out!" then click to send, is how the plugin operates. I may be mistaken on this though. Is there something upstream in the Swagger UI code or in the plugin we could take in our vendoring to fix this? Or is there a specific patch of the HTML page you have in mind? Otherwise, the only option is to setup something custom as in the linked, but it'd be better if we didn't have to write another JS func and wrap things. |
To be sure, I tested this via a clean stock swagger UI from dockerhub. |
thanks for checking and providing screenshots! I'm not working in the web world day to day, so I'm thankful for all reminders and help on that end! Reading the docs, I'm interested in this:
That actually seems like the fastest, and best root. Meaning, providing a way for
I have a preference here that we should investigate the swagger-config.yaml file location in relation to the Swagger app generated by flask-restx, then move down on how we can configure. As a former ops person, it makes a lot of sense to me to use the swagger-config.yaml file if possible, and have configuration be part of deployment. I'd prefer that to adding more variables into the template That being said, it's easier to add to the template than I had first thought, so I don't find it as onerous. |
It looks like this feature was enabled since swagger UI v 3.41.0, but restx is still using v2: swagger-api/swagger-ui#7252 (comment) Perhaps this is the reason? |
I did the following
and now I am seeing a blank page and the log says
Is there anything else to be done for testing? |
Hello, Yes, sorry, the assets are not part of the git repository, you have to run |
Is your feature request related to a problem? Please describe.
To explore my API I always have to click try it out. This consumes quite some time
Describe the solution you'd like
Add an option to enable the try it out feature by default. This seems already possible in swagger via the tryItOutEnabled setting.
https://github.com/swagger-api/swagger-ui/blob/master/docs/usage/configuration.md
Describe alternatives you've considered
Hack the library similar to kristleifur/flask-restplus@7896401
Additional context
To avoid additional feature requests of this kind in the future, one might establish a way to pass everything that is listed in
https://github.com/swagger-api/swagger-ui/blob/master/docs/usage/configuration.md
The text was updated successfully, but these errors were encountered: