RustAPI OpenAPI
OpenAPI documentation generation for the RustAPI framework.
Note: This is an internal crate. You should depend on
rustapi-rsinstead.
Features
- Auto-generation: Generates OpenAPI v3 specification from your code.
- Swagger UI: Serves an interactive documentation page.
- Schema Derivation:
#[derive(Schema)]for structs (re-exportsutoipa::ToSchema). - Standard Schemas: Includes common schemas like
ErrorSchema,ValidationErrorSchema.
Integration
This crate is tightly integrated into rustapi-core.
use ;
// Create a spec
let spec = new
.;