Skip to main content

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//! - `update_status` — `GET /update-status`, the installed version joined
18//!   with the last completed manual update check.
19//! - `describe_live` — the mid-step join: current step + attempt liveness +
20//!   progress note + transcript tail, in one read.
21//! - `assistant` — `GET /assistant`, the built-in assistant this binary carries.
22//! - `queues` — the fleet-wide unserved-queue read.
23//! - `managed_workers` — `GET /workers/managed`, the supervision status join,
24//!   and the `POST /workers/managed/{name}/{start,stop,restart}` lifecycle
25//!   commands (mounted only when `[deploy].enabled`, like the gRPC
26//!   `DeployService` counterparts they mirror).
27//! - `unrecoverable` — the fleet-wide degraded-residency read.
28//! - `clean_dtos` — clean JSON request/response DTOs for the workflow POST endpoints.
29//! - `error` — wire-error-to-HTTP response mapping.
30
31mod assistant;
32pub(crate) mod auth;
33mod authoring;
34mod awl;
35mod awl_deployed;
36mod build;
37mod changelog;
38mod clean_dtos;
39mod cluster_command;
40mod deploy;
41mod describe_live;
42mod dev_ui;
43mod error;
44mod events;
45mod history;
46mod intervene;
47mod managed_workers;
48mod outbox;
49mod payload;
50mod queues;
51mod router;
52mod schedules;
53mod transcripts;
54mod unrecoverable;
55mod update_status;
56mod visibility;
57mod whoami;
58mod worker_deployments;
59mod workers;
60mod workflows;
61
62#[cfg(test)]
63mod events_filter_integration_tests;
64#[cfg(test)]
65mod history_tests;
66#[cfg(test)]
67mod test_support;
68#[cfg(test)]
69mod transcripts_tests;
70
71pub use router::{http_router, workflow_router};