Skip to content

Get-Only Swagger UI#162

Open
bakhterets wants to merge 2 commits intomainfrom
feature/swagger_ui_clean
Open

Get-Only Swagger UI#162
bakhterets wants to merge 2 commits intomainfrom
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant