swaggo / gin-swagger

gin middleware to automatically generate RESTful API documentation with Swagger 2.0.
MIT License
3.66k stars 266 forks source link

Fixes #278: Adds support to control the Try It Out button #281

Open limistah opened 10 months ago

limistah commented 10 months ago

Describe the PR This adds support to control the Try It Out button via the supportedMethods configuration on swagger

Relation issue See #278

codecov[bot] commented 10 months ago

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (3b4340f) 100.00% compared to head (1f49d2a) 100.00%.

:exclamation: Current head 1f49d2a differs from pull request most recent head 977e936. Consider uploading reports for the commit 977e936 to get more accurate results

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #281 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 1 1 Lines 104 119 +15 ========================================= + Hits 104 119 +15 ``` | [Files Changed](https://app.codecov.io/gh/swaggo/gin-swagger/pull/281?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=swaggo) | Coverage Δ | | |---|---|---| | [swagger.go](https://app.codecov.io/gh/swaggo/gin-swagger/pull/281?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=swaggo#diff-c3dhZ2dlci5nbw==) | `100.00% <100.00%> (ø)` | |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

limistah commented 10 months ago

@ubogdan You can review this PR