boson-axum
HTTP admin API for Boson under /api/boson.
Role
- Job enqueue, list, get, and cancel
- Run inspection and task config CRUD
boson_router— mountable Axum routerBosonState— shared handler state (FromRefinto host router)
Mount
use Router;
use ;
let app = new
.nest
.with_state;
Enable via the boson crate's axum feature:
= { = "uf-boson", = "0.1.1", = ["mem", "axum"] }
Routes
| Method | Path | Purpose |
|---|---|---|
POST |
/jobs/enqueue |
Enqueue a job |
GET |
/jobs |
List jobs |
GET |
/jobs/{id} |
Get job by id |
POST |
/jobs/{id}/cancel |
Cancel job |
GET |
/runs |
List runs |
GET |
/tasks |
List registered tasks |
GET/PUT |
/tasks/{name}/config |
Task configuration |
Related crates
boson— enable withfeatures = ["axum"]boson-runtime—Bosoninstance wired into state