Skip to main content

cerno_server/
lib.rs

1//! The cerno HTTP service.
2//!
3//! [`build_router`] serves `POST /v1/systemone`, `GET /v1/models` and `/health`, with the
4//! Swagger UI at `/docs` and the OpenAPI document at `/openapi.json`. The handlers validate a
5//! request whole before any host call and hand it to [`cerno_core::Engine`], which does the
6//! actual work over whichever [`cerno_host`] adapter [`Config`] selects.
7//!
8//! [`ApiDoc`] is also what the `cerno-openapi` binary prints into `spec/openapi.json`, the
9//! document the SDKs are written against.
10
11pub mod config;
12pub mod error;
13pub mod router;
14pub mod routes;
15pub mod state;
16
17pub use config::Config;
18pub use router::{ApiDoc, build_router};
19pub use state::AppState;