Reputation: 457
I have been using Swagger-UI to document my APIs and have been loving it, however I was wondering if in the "try it now" section (when Swagger returns the request URL, if there was a way to also show the CURL?
I was wondering if someone had devised a hack to inject this into the prebuilt Swagger-UI format (as I just generated it using a Swagger-Spec).
Upvotes: 1
Views: 3257
Reputation: 194
The last version of swagger-ui dist bundle will show the curl commands section by default, no single change in your specification is necessary.
Upvotes: 2