6 releases
0.3.0 | Dec 2, 2023 |
---|---|
0.2.3 | Dec 2, 2023 |
0.2.2 | Dec 30, 2022 |
0.2.1 | Nov 26, 2022 |
0.1.0 | Nov 9, 2022 |
#1123 in Development tools
488 downloads per month
9KB
Swagger UI
Swagger UI code comes from: https://github.com/swagger-api/swagger-ui.
Usage:
let doc_url = "swagger/openapi.json";
let app = Router::new()
.route("/swagger", get(|| async { swagger_ui(doc_url) }))
.route(doc_url, get(|| async { include_str!("openapi.json") }))
// your other routes
.route("/", get(|| async { "Hello, World!" }));