utoipa-axum
Installation
SKILL.md
OpenAPI with utoipa + Axum
utoipa provides compile-time OpenAPI documentation for Rust REST APIs. Code-first approach: annotate handlers and types, get OpenAPI 3.1 spec automatically.
Core Concepts
- ToSchema — Derive for request/response body types
- #[utoipa::path] — Annotate handlers with path, method, params, responses
- OpenApi — Combine all paths and schemas into spec
- Scalar — Serve interactive API documentation
Cargo.toml Setup
Related skills