Expand description
axum HTTP REST API.
Exposes a thin REST layer over the actor system.
§Endpoints
| Method | Path | Description |
|---|---|---|
| GET | /health | Server liveness check |
| GET | /actors | List all actors + states |
| GET | /actors/{id} | Single actor info |
| POST | /actors/{id}/message | Send a message to an actor |
| DELETE | /actors/{id} | Stop an actor (if not protected) |
| GET | /actors/{id}/metrics | Actor runtime metrics |
| POST | /chat | Send a message to MainActor and stream response |
Structs§
- AppState
- Shared application state injected into axum handlers.
- Chat
Request - JSON body for POST /chat
- Rest
Server - The axum HTTP server.
- Send
Message Request - JSON body for POST /actors/{id}/message