feat(api): the OpenAPI description covers the code graph and chat routes (#1006) #1017

Merged
sharang merged 1 commits from feat/openapi-graph into main 2026-11-16 17:40:53 +00:00
Owner

Part of #1006: the next group of the OpenAPI description, the code graph and chat routes.

What changes

  • The 12 paths are registered through routes! and described by #[utoipa::path]:
    • Code graph: the graph, its nodes (page, limit), summary, communities, a finding's impact, symbol search (q, limit), file content (path), and rebuild.
    • Chat: the code chat, its embedding build and the build status.
    • Help: the documentation chat.
  • Schemas: SearchParams, FileContentParams, HelpChatRequest and HelpChatMessage.
  • The code chat body stays an object, because ChatRequest lives in core.
  • Each summary is a one-line first doc paragraph, replacing the old "GET /api/… —" comments.
  • undescribed_routes.txt goes from 71 to 59 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, the code graph and chat routes. ## What changes - The 12 paths are registered through `routes!` and described by `#[utoipa::path]`: - **Code graph:** the graph, its nodes (`page`, `limit`), summary, communities, a finding's impact, symbol search (`q`, `limit`), file content (`path`), and rebuild. - **Chat:** the code chat, its embedding build and the build status. - **Help:** the documentation chat. - Schemas: `SearchParams`, `FileContentParams`, `HelpChatRequest` and `HelpChatMessage`. - The code chat body stays an object, because `ChatRequest` lives in core. - Each summary is a one-line first doc paragraph, replacing the old "GET /api/… —" comments. - `undescribed_routes.txt` goes from 71 to 59 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 16:46:17 +00:00
feat(api): the OpenAPI description covers the code graph and chat 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 4m43s
CI / Check (pull_request) Successful in 20m20s
75ff5d4d43
The 12 code graph, chat and help chat paths are described from their
handlers: the graph, its nodes, summary, communities, a finding's impact,
symbol search, file content and rebuild (tag "Code graph"), the code chat
and its embeddings (tag "Chat"), and the documentation chat (tag "Help").
The search, file and help chat inputs are schemas; the code chat body
stays an object, as it is a core type. undescribed_routes.txt drops to
59 paths.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
sharang merged commit 48b1a4a47d into main 2026-11-16 17:40:53 +00:00
sharang deleted branch feat/openapi-graph 2026-11-16 17:40:53 +00:00
Sign in to join this conversation.