feat(api): the OpenAPI description covers notifications, MCP, tickets and scan runs (#1006) #1020

Merged
sharang merged 1 commits from feat/openapi-workspace into main 2026-11-16 19:09:52 +00:00
Owner

Part of #1006: the next group of the OpenAPI description, covering notifications, MCP, tickets and scan runs.

What changes

  • The 12 paths (15 operations) are registered through routes! and described by #[utoipa::path]:
    • Notifications: the list (status, severity, repo_id, page, limit), the unread count, read-all, read and dismiss.
    • MCP: server cards (list, add, remove, new access token) and MCP tokens (list, mint, revoke).
    • Tickets: GET /api/v1/issues (q, status, repo_id, page, limit).
    • Scans: GET /api/v1/scan-runs (target_id, page, limit).
  • Schemas: NotificationFilter, ListQuery, IssuesFilter and ScanRunFilter for the queries; CreateRequest (MCP card) and CreateMcpTokenRequest for the bodies.
  • Each summary is a one-line first doc paragraph.
  • undescribed_routes.txt goes from 59 to 47 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 and checked each operation's summary, parameters, body and tag.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9

Part of #1006: the next group of the OpenAPI description, covering notifications, MCP, tickets and scan runs. ## What changes - The 12 paths (15 operations) are registered through `routes!` and described by `#[utoipa::path]`: - **Notifications:** the list (`status`, `severity`, `repo_id`, `page`, `limit`), the unread count, read-all, read and dismiss. - **MCP:** server cards (list, add, remove, new access token) and MCP tokens (list, mint, revoke). - **Tickets:** `GET /api/v1/issues` (`q`, `status`, `repo_id`, `page`, `limit`). - **Scans:** `GET /api/v1/scan-runs` (`target_id`, `page`, `limit`). - Schemas: `NotificationFilter`, `ListQuery`, `IssuesFilter` and `ScanRunFilter` for the queries; `CreateRequest` (MCP card) and `CreateMcpTokenRequest` for the bodies. - Each summary is a one-line first doc paragraph. - `undescribed_routes.txt` goes from 59 to 47 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 and checked each operation's summary, parameters, body and tag. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
sharang added 1 commit 2026-11-16 18:47:22 +00:00
feat(api): the OpenAPI description covers notifications, MCP, tickets and scan runs (#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 4m57s
CI / Check (pull_request) Successful in 21m50s
547cbf1264
The 12 paths (15 operations) are described from their handlers: the CVE
notifications and their count, read and dismiss (tag "Notifications"),
the MCP server cards and MCP tokens (tag "MCP"), the tickets list
("Tickets") and the scan runs ("Scans"). Their filters and bodies are
schemas. undescribed_routes.txt drops to 47 paths.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
sharang merged commit 8ae561a01a into main 2026-11-16 19:09:52 +00:00
sharang deleted branch feat/openapi-workspace 2026-11-16 19:09:52 +00:00
Sign in to join this conversation.