Salvo is an extremely simple and powerful Rust web backend framework. Only basic Rust knowledge is required to develop backend services.
salvo-oapi
OpenAPI support for Salvo.
This is an official crate, so you can enable it in Cargo.toml like this:
= { = "*", = ["oapi"] }
Quick Start
Change #[handler] to #[endpoint], build an OpenApi document from the
router, then mount the JSON document and a UI router.
use QueryParam;
use *;
async
async
Open http://127.0.0.1:7878/swagger-ui to inspect the generated API document.
Documentation & Resources
☕ Donate
Salvo is an open source project. If you want to support Salvo, you can ☕ buy me a coffee here.
⚠️ License
Salvo is licensed under Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0).