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

Button to toggle a preview of html returned in a response #6847

Open
vdwees opened this issue Jan 18, 2021 · 4 comments
Open

Button to toggle a preview of html returned in a response #6847

vdwees opened this issue Jan 18, 2021 · 4 comments

Comments

@vdwees
Copy link

vdwees commented Jan 18, 2021

I am using Swagger UI to document a service, and one of the endpoints returns embeddable content. Swagger UI renders the code as HTML, for reasons described in #1748 and #3881. However, I found it useful to extend Swagger UI with a button to toggle rendering the html inline, so that it is easy to visualize and interact with the response from the server.

Screenshots are below. Notice the Show/Hide preview button in the bottom left corner. Its a small change that adds a really valuable feature without breaking any existing behaviour (vdwees/swagger-ui@1344e49)

Would a formal PR be welcome?

image

image

@smalagon15
Copy link

This would be awesome

@qeleb
Copy link

qeleb commented Jan 18, 2023

please do this

@AmyChodorowski
Copy link

AmyChodorowski commented Sep 6, 2023

Does anyone know a patch like this, but for the latest swagger-ui version

@noor-tg
Copy link

noor-tg commented Apr 28, 2024

any news about this ?

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

5 participants