Skip to main content

Module rest

Module rest 

Source
Expand description

HTTP REST API for Cortex.

Provides a REST interface alongside the Unix socket server. Every REST endpoint maps 1:1 to a protocol method, using the same SharedState and handle_request dispatch.

Functions§

router
Build the axum Router with all REST endpoints.
start
Start the REST API server on the given port.