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//! - `queues` — the fleet-wide unserved-queue read.
18//! - `unrecoverable` — the fleet-wide degraded-residency read.
19//! - `clean_dtos` — clean JSON request/response DTOs for the workflow POST endpoints.
20//! - `error` — wire-error-to-HTTP response mapping.
21
22mod auth;
23mod authoring;
24mod awl;
25mod awl_deployed;
26mod build;
27mod clean_dtos;
28mod cluster_command;
29mod deploy;
30mod dev_ui;
31mod error;
32mod events;
33mod history;
34mod intervene;
35mod outbox;
36mod payload;
37mod queues;
38mod router;
39mod schedules;
40mod transcripts;
41mod unrecoverable;
42mod visibility;
43mod whoami;
44mod workers;
45mod workflows;
46
47#[cfg(test)]
48mod events_filter_integration_tests;
49#[cfg(test)]
50mod history_tests;
51#[cfg(test)]
52mod test_support;
53#[cfg(test)]
54mod transcripts_tests;
55
56pub use router::{http_router, workflow_router};