Skip to content

chore(api): expose OpenAPI + Scalar UI in production#140

Merged
ma7moudalysalem merged 1 commit into
mainfrom
chore/expose-openapi-prod
Jul 7, 2026
Merged

chore(api): expose OpenAPI + Scalar UI in production#140
ma7moudalysalem merged 1 commit into
mainfrom
chore/expose-openapi-prod

Conversation

@ma7moudalysalem

Copy link
Copy Markdown
Owner

Enables the API docs in prod (were dev-only). OpenAPI JSON at /openapi/v1.json, Scalar UI at /scalar/v1. Docs endpoints are anonymous; described endpoints still enforce their own [Authorize].

The docs were mounted only under IsDevelopment(). Enable them in all
environments so the team can browse the API surface for the graduation demo:
- OpenAPI JSON: /openapi/v1.json
- Scalar UI:    /scalar/v1

Both endpoints are anonymous, but every endpoint they describe still enforces its
own [Authorize] — no data or privileged action is reachable without a valid token.
Copilot AI review requested due to automatic review settings July 7, 2026 12:05
@ma7moudalysalem ma7moudalysalem merged commit ac281d4 into main Jul 7, 2026
@ma7moudalysalem ma7moudalysalem deleted the chore/expose-openapi-prod branch July 7, 2026 12:05

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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.

2 participants