Swagger-ui: Add a button to select (and/or copy) all content of response

Created on 31 Jul 2018  路  3Comments  路  Source: swagger-api/swagger-ui

Hi! Swagger it is very cool and good solution for design and to work with API. And I'll be very happy if the one feature can be released.

Is your feature request related to a problem?

I'm always frustrated when I debug the Laravel applications and the calling of debug returns the big pack of text. So it's very complicated to select the all response text and copy it to paste into another editor.

Another situation is when the one developer asks from me the example of a response. So I need to very accurately select the response content (it may be json, maybe not). And it takes a long time because it is very easy to skip one symbol...

It is may be very cool to add a simple one button like "Select all response content".

Describe the solution you'd like

Maybe add the very simple button to each response content like a "Select all response content"?

Thanks to all!

rendering try-it-out enhancement

Most helpful comment

I think a click-to-select-all functionality (like the one you can observe in the cURL display) would be great here.

All 3 comments

I think a click-to-select-all functionality (like the one you can observe in the cURL display) would be great here.

@ilnurshax Swagger UI 3.27.0 and later has the "Copy" button in live responses (added in PR https://github.com/swagger-api/swagger-ui/pull/5278). Does this suit your needs?

@hkosova Yes, actually. Thanks! 馃榾

Was this page helpful?
0 / 5 - 0 ratings