hive-c0re: annotate remaining dashboard routes with utoipa

This commit is contained in:
damocles 2026-07-31 23:00:12 +02:00 committed by mara
commit 582ebe5eee
21 changed files with 738 additions and 45 deletions

View file

@ -104,6 +104,19 @@ pub(crate) async fn emit_tombstones_snapshot(coord: &Arc<Coordinator>) {
});
}
/// `POST /api/purge-tombstone/{name}` — wipe a tombstoned agent's
/// retained state dir + applied config dir entirely.
#[utoipa::path(
post,
path = "/api/purge-tombstone/{name}",
params(("name" = String, Path, description = "agent name")),
responses(
(status = 200, description = "purged", body = String),
(status = 400, description = "bad agent name"),
(status = 500, description = "a live container still exists, or a dir removal failed"),
),
tag = "tombstones"
)]
pub(super) async fn post_purge_tombstone(
State(state): State<AppState>,
AxumPath(name): AxumPath<String>,