Repository navigation
feat(#408): /graph API endpoint — nodes + edges JSON for visualization - #422
Merged
Merged
Conversation
Add GET /graph endpoint to uteke-server:
- Returns all graph nodes and edges as JSON
- Optional ?namespace=<ns> query param for filtering
- Response: { nodes: [...], edges: [...], stats: {...} }
New Uteke::graph_data() method exposes GraphStore.all_nodes()
and all_edges() in a single call for visualization clients.
🔍 Cora AI Code Review❌ Blocked — critical issues found. 🔴 Error (2)
Review powered by cora-cli · BYOK · MIT |
| let stats = gs.stats()?; | ||
|
|
||
| // Filter by namespace if specified. | ||
| let (nodes, edges) = if let Some(ns) = namespace { |
| .into_iter() | ||
| .filter(|n| { | ||
| // Memory-linked nodes: check memory namespace. | ||
| // Entity nodes: always include (shared across namespaces). |
ajianaz
added a commit
that referenced
this pull request
Aug 13, 2026
#422) * feat(#408): /graph API endpoint — nodes + edges JSON for visualization Add GET /graph endpoint to uteke-server: - Returns all graph nodes and edges as JSON - Optional ?namespace=<ns> query param for filtering - Response: { nodes: [...], edges: [...], stats: {...} } New Uteke::graph_data() method exposes GraphStore.all_nodes() and all_edges() in a single call for visualization clients. * style: fmt fix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements #408.
Summary
Add
GET /graphendpoint to uteke-server for graph visualization.API
Response
{ "nodes": [{ "id": "...", "label": "...", "entity_type": "...", ... }], "edges": [{ "source_id": "...", "target_id": "...", "relation": "...", ... }], "stats": { "node_count": N, "edge_count": N, ... } }New method
Uteke::graph_data(namespace)— wraps GraphStore.all_nodes() + all_edges().Milestone: v0.3.0 — Graph RAG