UtoipaMethodRouter

Type Alias UtoipaMethodRouter 

Source
pub type UtoipaMethodRouter = (Vec<(String, RefOr<Schema>)>, Paths);
Expand description

Wrapper type for utoipa::openapi::path::Paths and [axum::routing::MethodRouter].

This is used with OpenApiRouter::routes method to register current paths to the utoipa::openapi::OpenApi of OpenApiRouter instance.

See routes for usage.