Ask a Question

Can you disable inclusion of -X in generated "Try it out" cURL commands when not required?

danieltprice
Occasional Visitor

Can you disable inclusion of -X in generated "Try it out" cURL commands when not required?

The Try it out feature appears to always include the -X option in generated cURL commands for methods that may not require it. Is there a way to exclude the -X for generated cURL commands?

1 REPLY 1
ponelat
Staff

Hi @danieltprice ,

 

I don't believe we have that config in SwaggerUI. Are you asking because it would look cleaner, or is there another reason? 

PS: You're welcome to request the feature or create a pull request in the GitHub repo, https://github.com/swagger-api/swagger-ui/issues. It may not need a config, if the added feature is smart enough to know when it's needed or not. 

 

cancel
Showing results for 
Search instead for 
Did you mean: