utoipa-axum - Bindings for Axum and utoipa
Utoipa axum brings utoipa and axum closer together by the way of providing an ergonomic API that is extending on
the axum API. It gives a natural way to register handlers known to axum and also simultaneously generates OpenAPI
specification from the handlers.
Crate features
debug: Implement debug traits for types.
Install
Add dependency declaration to Cargo.toml.
[]
= "0.2"
Examples
Use OpenApiRouter to collect handlers with #[utoipa::path] macro to compose service and form OpenAPI spec.
use ;
async
let = new
.routes
.split_for_parts;
License
Licensed under either of Apache 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, shall be dual licensed, without any additional terms or conditions.