Skip to main content

Crate cerno_server

Crate cerno_server 

Source
Expand description

The cerno HTTP service.

build_router serves POST /v1/systemone, GET /v1/models and /health, with the Swagger UI at /docs and the OpenAPI document at /openapi.json. The handlers validate a request whole before any host call and hand it to [cerno_core::Engine], which does the actual work over whichever cerno_host adapter Config selects.

ApiDoc is also what the cerno-openapi binary prints into spec/openapi.json, the document the SDKs are written against.

Re-exports§

pub use config::Config;
pub use router::ApiDoc;
pub use router::build_router;
pub use state::AppState;

Modules§

config
Configuration, read once at startup.
error
Mapping engine failures onto HTTP.
router
Router assembly.
routes
HTTP handlers.
state
What every handler shares.