`GET /api/plugins/graph/node/{node_id}`
(
State(state): State<DashboardState>,
JsonPath(node_id): JsonPath<String>,
)
| 65 | |
| 66 | /// `GET /api/plugins/graph/node/{node_id}` |
| 67 | pub(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` |
| 81 | pub(crate) async fn neighbors( |
nothing calls this directly
no test coverage detected