dokkaiv0.1.0
API Reference

Get a single entity

One entity's graph node enriched with its Weaviate description and chunk text.

GET/graph/{project}/entityany

Returns the named entity's graph node, enriched with description and chunk_text fetched from Weaviate via the same deterministic-UUID lookup the MCP get_entity tool uses.

description/chunk_text are null (not an error) when the entity has no chunk in Weaviate — a structural-only node — or when Weaviate is unreachable: the graph JSON is the source of truth for the entity's existence.

Path parameters

projectstringrequired
The project_name.

Query parameters

namestringrequired
Qualified name of the entity, e.g. src.http.RequestHandler.

Request

cURL
bash
curl "localhost:8000/graph/your-repo/entity?name=src.http.RequestHandler" \
  -H "Authorization: Bearer $TOKEN"

Responses

200The entity's node + description/chunk_text
json
{
  "id": 42,
  "kind": "Class",
  "qualified_name": "src.http.RequestHandler",
  "path": "src/http/request_handler.py",
  "start_line": 10, "end_line": 80,
  "description": "Parses an incoming request and dispatches it to a service.",
  "chunk_text": "..."
}
404No graph, or entity not found
json
{ "detail": "entity 'src.http.RequestHandler' not found in project 'your-repo' graph" }