Trait poem_openapi::OpenApi

source ·
pub trait OpenApi: Sized {
    fn meta() -> Vec<MetaApi> ;
    fn register(registry: &mut Registry);
    fn add_routes(
        self,
        route_table: &mut HashMap<Method, HashMap<String, BoxEndpoint<'static>>>
    ); }
Expand description

Represents a OpenAPI object.

Required Methods

Gets metadata of this API object.

Register some types to the registry.

Adds all API endpoints to the routing object.

Implementations on Foreign Types

Implementors