Can you disable inclusion of -X in generated "Try it out" cURL commands when not required?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2022
05:00 AM
12-08-2022
05:00 AM
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
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2022
06:54 AM
12-08-2022
06:54 AM
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.
