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//! - `children` — authorized direct-child projection for one parent run.
7//! - `schedules` — schedule management handlers.
8//! - `events` — websocket event-subscription handlers.
9//! - `deploy` — operator deploy handlers (mounted only when `[deploy].enabled`).
10//! - `awl_deployed` — the read-only deployed-AWL studio surface (mounted only
11//!   when `[deploy].enabled`, alongside the deploy read model it reflects).
12//! - `authoring` — server-side Gleam authoring (mounted only when `[authoring].gleam_path` is set).
13//! - `dev_ui` — local dev-server surface (mounted only when `[dev].enabled`).
14//! - `auth` — caller-identity extraction from request headers.
15//! - `routing` — shard-owner forwarding for HTTP writes (clustered builds).
16//! - `visibility` — visibility query-string parsing and namespace scoping.
17//! - `payload` — HTTP body/payload encode-decode shapes and conversions.
18//! - `build` — `GET /build`, the server's own revision.
19//! - `update_status` — `GET /update-status`, the installed version joined
20//!   with the last completed manual update check.
21//! - `describe_live` — the mid-step join: current step + attempt liveness +
22//!   progress note + transcript tail, in one read.
23//! - `assistant` — `GET /assistant`, the built-in assistant this binary carries.
24//! - `queues` — the fleet-wide unserved-queue read.
25//! - `managed_workers` — `GET /workers/managed`, the supervision status join,
26//!   and the `POST /workers/managed/{name}/{start,stop,restart}` lifecycle
27//!   commands (mounted only when `[deploy].enabled`, like the gRPC
28//!   `DeployService` counterparts they mirror).
29//! - `unrecoverable` — the fleet-wide degraded-residency read.
30//! - `clean_dtos` — clean JSON request/response DTOs for the workflow POST endpoints.
31//! - `error` — wire-error-to-HTTP response mapping.
32
33mod assistant;
34pub(crate) mod auth;
35mod authoring;
36mod awl;
37mod awl_deployed;
38mod build;
39mod changelog;
40mod children;
41mod clean_dtos;
42mod cluster_command;
43mod deploy;
44mod describe_live;
45mod dev_ui;
46mod error;
47mod events;
48mod history;
49mod intervene;
50mod managed_workers;
51mod outbox;
52mod payload;
53mod queues;
54mod router;
55mod routing;
56mod schedules;
57mod transcripts;
58mod unrecoverable;
59mod update_status;
60mod visibility;
61mod whoami;
62mod worker_deployments;
63mod workers;
64mod workflows;
65
66#[cfg(test)]
67mod children_tests;
68#[cfg(test)]
69mod events_filter_integration_tests;
70#[cfg(test)]
71mod history_tests;
72#[cfg(test)]
73pub(crate) mod test_support;
74#[cfg(test)]
75mod transcripts_tests;
76
77pub use router::{http_router, workflow_router};