0

I noticed that from version 5.0 and above the SupportedSubmitMethods option has been removed and now all HTTP verbs are implicitly supported, according to this part of the Swashbuckle documentation.

Is there a way to choose which HTTP verbs will support the "Try it out" option in swagger 5.X.X ?

iliyan tanev
  • 377
  • 2
  • 15

1 Answers1

2

No, I don't think so. You can however modify the behavior of swagger ui. VisualBean has put a solution here

The idea of his solution is to let Swashbuckle inject custom javascript that removes buttons with specific classes (eg .put .submit and .post .submit).

Community
  • 1
  • 1
venerik
  • 5,766
  • 2
  • 33
  • 43