zart-api 0.1.1

Optional Axum HTTP server for Zart — exposes execution status, cancellation, and event delivery endpoints
Documentation

zart-api

Optional Axum HTTP server for the Zart durable execution framework.

Drop zart-api into your application to expose execution management over HTTP — no extra infrastructure needed.

Endpoints

GET    /api/v1/executions                         List executions (filterable by status, name)
POST   /api/v1/executions                         Start a new execution
GET    /api/v1/executions/:id                     Get execution status
POST   /api/v1/executions/:id/cancel              Cancel a running execution
GET    /api/v1/executions/:id/wait                Long-poll until completion
POST   /api/v1/events/:id/:event_name             Deliver an external event
GET    /api/v1/stats                              Aggregate counts by status

GET    /admin/v1/executions/:id/detail            Full detail with steps and attempts
POST   /admin/v1/executions/:id/retry-step        Retry a dead step
POST   /admin/v1/executions/:id/restart           Restart an execution from scratch
POST   /admin/v1/executions/:id/rerun             Selective step rerun

GET    /healthz                                   Liveness probe
GET    /readyz                                    Readiness probe
GET    /metrics                                   Prometheus metrics (requires `metrics` feature)

Feature flags

Flag Description
metrics Enables the /metrics Prometheus endpoint

Learn more