Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Currently all operations have "Try it out" functionality in the rendered Swagger UI. There might be cases when this functionality should be disabled for some operations (like GET, POST, etc.) or for all of them.
I submitted a patch that creates a configuration for the Swagger UI field formatter and applies it (using the supportedSubmitMethods
option) when rendering the output.
Comment | File | Size | Author |
---|---|---|---|
#2 | interdiff_1-2.txt | 3.76 KB | balazswmann |
#2 | swagger_ui_formatter-disable-try-it-out-2969542-2-D8.patch | 4.21 KB | balazswmann |
option-to-disable-try-it-out-for-specific-operations.patch | 3.45 KB | kittiradovics |
Comments
Comment #2
balazswmann CreditAttribution: balazswmann commentedThank you!
I re-attached the patch with some refinements.
Comment #3
kittiradovics CreditAttribution: kittiradovics commentedComment #5
balazswmann CreditAttribution: balazswmann commentedThanks! Committed.