feat(api): the OpenAPI description covers health, workspace and support routes (#1006) #1022

Merged
sharang merged 1 commits from feat/openapi-platform into main 2026-11-16 21:42:10 +00:00
Owner

Part of #1006: the next group of the OpenAPI description, covering the health, workspace and support routes.

What changes

  • The 8 paths are registered through routes! and described by #[utoipa::path]:
    • Health: GET /api/v1/health. It is public, so the spec has no bearer requirement on it (bypasses_customer_auth); 503 when MongoDB is unreachable.
    • Workspace: access, overview stats, projects, metering usage and the git source (administrators and support only).
    • Support: the tenant list and opening a session.
  • Each summary is a one-line first doc paragraph, replacing the old "GET /api/… —" comments.
  • undescribed_routes.txt goes from 39 to 31 paths.

Checks

  • cargo fmt --check and clippy with the CI flags pass.
  • The agent's API unit tests pass (129).
  • Every agent integration test binary passes against Mongo 7.
  • I dumped the spec: health has no security requirement, and the other seven have the bearer requirement.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9

Part of #1006: the next group of the OpenAPI description, covering the health, workspace and support routes. ## What changes - The 8 paths are registered through `routes!` and described by `#[utoipa::path]`: - **Health:** `GET /api/v1/health`. It is public, so the spec has no bearer requirement on it (`bypasses_customer_auth`); 503 when MongoDB is unreachable. - **Workspace:** access, overview stats, projects, metering usage and the git source (administrators and support only). - **Support:** the tenant list and opening a session. - Each summary is a one-line first doc paragraph, replacing the old "GET /api/… —" comments. - `undescribed_routes.txt` goes from 39 to 31 paths. ## Checks - `cargo fmt --check` and clippy with the CI flags pass. - The agent's API unit tests pass (129). - Every agent integration test binary passes against Mongo 7. - I dumped the spec: health has no security requirement, and the other seven have the bearer requirement. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
sharang added 1 commit 2026-11-16 21:18:58 +00:00
feat(api): the OpenAPI description covers health, workspace and support routes (#1006)
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Agent integration (pull_request) Successful in 4m47s
CI / Check (pull_request) Successful in 21m22s
20714bf923
The 8 paths are described from their handlers: the public health check
(tag "Health", no bearer requirement), access, overview stats, projects,
metering usage and the git source (tag "Workspace"), and support's
tenant list and session (tag "Support"). undescribed_routes.txt drops to
31 paths.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
sharang merged commit e521c8fdd9 into main 2026-11-16 21:42:10 +00:00
sharang deleted branch feat/openapi-platform 2026-11-16 21:42:11 +00:00
Sign in to join this conversation.