Skip to content

fix: auto adds api key header to swagger requests#92

Merged
semmet95 merged 1 commit into
mainfrom
fix/swagger-ui-access
Apr 19, 2026
Merged

fix: auto adds api key header to swagger requests#92
semmet95 merged 1 commit into
mainfrom
fix/swagger-ui-access

Conversation

@semmet95
Copy link
Copy Markdown
Contributor

@semmet95 semmet95 commented Apr 19, 2026

Summary by cubic

Swagger UI now auto-adds the X-API-Key header to all requests so protected endpoints work during in-browser testing. The OpenAPI spec defines ApiKeyAuth, and tests/envs use demo-api-key.

  • Bug Fixes
    • Added ApiKeyAuth to OpenAPI and set it as a global security requirement.
    • Preauthorized ApiKeyAuth in Swagger UI with demo-api-key.
    • Updated acceptance tests and compose.yaml to use demo-api-key; regenerated server to set ApiKeyAuth scopes in request context.

Written for commit 52a93b4. Summary will update on new commits.

Signed-off-by: Amit Singh <singhamitch@outlook.com>
@semmet95 semmet95 marked this pull request as ready for review April 19, 2026 17:22
Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 5 files

@semmet95 semmet95 merged commit 41ac514 into main Apr 19, 2026
5 checks passed
@semmet95 semmet95 deleted the fix/swagger-ui-access branch April 19, 2026 17:31
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