Shawn123
Shawn123

Reputation: 457

Adding Curl Feature to Swagger-UI

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

Answers (1)

cevantes
cevantes

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

Related Questions