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
Restore "Request URL" in live response section #3421
Conversation
Wouldn't that be equivalent to just copying the request URL from the |
@webron: yes, sure, this additional section is only there to make easier to copy the URL. |
…ger-ui into dalbani-feature/request-url
…ni-feature/request-url
I made some changes:
|
I'm approving the code here, leaving the feature up to @webron. The request vs response naming here should not be overlooked before merging. |
@shockey request url is correct in this case. I'm ok with merging it, even though not a huge fan. |
I found the "request URL" section quite useful in Swagger UI v2, for example to replicate the request in a another browser tab or any other tool. (Evidently, that only works for GET requests.)
This is my proposal to restore this functionality in Swagger UI v3.
In terms of implementation, I wasn't sure if an
<a>
or<pre>
was more appropriate — or even a<textarea>
with auto copy-paste as for the Curl section.