Skip to content

Get-Only Swagger UI - #162

Merged
otc-zuul[bot] merged 5 commits into
mainfrom
feature/swagger_ui_clean
May 21, 2026
Merged

otc-zuul[bot] merged 5 commits into
mainfrom
feature/swagger_ui_clean

Conversation

@bakhterets

Copy link
Copy Markdown
Contributor

Serves Swagger UI at /swagger/any using gin-swagger
Dynamically filters openapi.yaml to expose only GET methods
Strips /auth/ paths, security block, securitySchemes, and Token* schemas
Removes RBAC-only fields (creator, contact_email, version) from response schemas
Overrides servers.url from the incoming request host (supports X-Forwarded-Proto)
Fixes openapi.yaml: realistic date examples, limit enum [10, 20, 50]
Limitations:

Swagger UI operates without authentication — all requests are anonymous
Only GET endpoints are visible; no mutation operations exposed

@bakhterets
bakhterets requested a review from sgmv April 23, 2026 15:11
@bakhterets bakhterets self-assigned this Apr 23, 2026
sgmv
sgmv previously approved these changes May 21, 2026
@sgmv sgmv added the gate Gate PR label May 21, 2026
@sgmv
sgmv self-requested a review May 21, 2026 08:06
@otc-zuul
otc-zuul Bot merged commit 9efff77 into main May 21, 2026
8 checks passed
@otc-zuul
otc-zuul Bot deleted the feature/swagger_ui_clean branch May 21, 2026 08:07

This branch was previously deployed

1 inactive deployment
github — 43411b88 Deployed May 21, 2026 by sgmv via automerge #1100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gate Gate PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants