MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / node

Function node

src/dashboard/graph_api.rs:67–78  ·  view source on GitHub ↗

`GET /api/plugins/graph/node/{node_id}`

(
    State(state): State<DashboardState>,
    JsonPath(node_id): JsonPath<String>,
)

Source from the content-addressed store, hash-verified

65
66/// `GET /api/plugins/graph/node/{node_id}`
67pub(crate) async fn node(
68 State(state): State<DashboardState>,
69 JsonPath(node_id): JsonPath<String>,
70) -> (StatusCode, Json<Value>) {
71 let Some(payload) = graph_service::node_payload(&state, &node_id).await else {
72 return (
73 StatusCode::NOT_FOUND,
74 Json(http_detail(&format!("node not found: {node_id}"))),
75 );
76 };
77 (StatusCode::OK, Json(payload))
78}
79
80/// `GET /api/plugins/graph/node/{node_id}/neighbors`
81pub(crate) async fn neighbors(

Callers

nothing calls this directly

Calls 2

http_detailFunction · 0.85
node_payloadFunction · 0.70

Tested by

no test coverage detected