aion_server/api/http/mod.rs
1//! axum HTTP/JSON workflow facade.
2//!
3//! Module layout:
4//! - [`router`] — public router construction (the only public surface).
5//! - `workflows` — workflow management handlers.
6//! - `schedules` — schedule management handlers.
7//! - `events` — websocket event-subscription handlers.
8//! - `deploy` — operator deploy handlers (mounted only when `[deploy].enabled`).
9//! - `awl_deployed` — the read-only deployed-AWL studio surface (mounted only
10//! when `[deploy].enabled`, alongside the deploy read model it reflects).
11//! - `authoring` — server-side Gleam authoring (mounted only when `[authoring].gleam_path` is set).
12//! - `dev_ui` — local dev-server surface (mounted only when `[dev].enabled`).
13//! - `auth` — caller-identity extraction from request headers.
14//! - `visibility` — visibility query-string parsing and namespace scoping.
15//! - `payload` — HTTP body/payload encode-decode shapes and conversions.
16//! - `build` — `GET /build`, the server's own revision.
17//! - `describe_live` — the mid-step join: current step + attempt liveness +
18//! progress note + transcript tail, in one read.
19//! - `assistant` — `GET /assistant`, the built-in assistant this binary carries.
20//! - `queues` — the fleet-wide unserved-queue read.
21//! - `managed_workers` — `GET /workers/managed`, the supervision status join,
22//! and the `POST /workers/managed/{name}/{start,stop,restart}` lifecycle
23//! commands (mounted only when `[deploy].enabled`, like the gRPC
24//! `DeployService` counterparts they mirror).
25//! - `unrecoverable` — the fleet-wide degraded-residency read.
26//! - `clean_dtos` — clean JSON request/response DTOs for the workflow POST endpoints.
27//! - `error` — wire-error-to-HTTP response mapping.
28
29mod assistant;
30pub(crate) mod auth;
31mod authoring;
32mod awl;
33mod awl_deployed;
34mod build;
35mod changelog;
36mod clean_dtos;
37mod cluster_command;
38mod deploy;
39mod describe_live;
40mod dev_ui;
41mod error;
42mod events;
43mod history;
44mod intervene;
45mod managed_workers;
46mod outbox;
47mod payload;
48mod queues;
49mod router;
50mod schedules;
51mod transcripts;
52mod unrecoverable;
53mod visibility;
54mod whoami;
55mod worker_deployments;
56mod workers;
57mod workflows;
58
59#[cfg(test)]
60mod events_filter_integration_tests;
61#[cfg(test)]
62mod history_tests;
63#[cfg(test)]
64mod test_support;
65#[cfg(test)]
66mod transcripts_tests;
67
68pub use router::{http_router, workflow_router};