#axum #swagger #openapi

axum-swagger-ui

A simple swagger ui integration for axum

3 unstable releases

Uses new Rust 2021

0.2.1 Nov 26, 2022
0.2.0 Nov 24, 2022
0.1.0 Nov 9, 2022

#1027 in Development tools

Download history 28/week @ 2022-11-07 8/week @ 2022-11-14 58/week @ 2022-11-21 11/week @ 2022-11-28

105 downloads per month

MIT license

10KB
70 lines

Swagger UI

Swagger UI code comes from: https://github.com/swagger-api/swagger-ui.

Usage:

let doc_url = "/openapi.json";
let app = Router::new()
    .nest("/swagger-ui", SwaggerUi::setup(doc_url))
    .route(doc_url, get(openapi_spec_handler))
    // your other routes
    .route("/", get(|| async { "Hello, World!" }));

Dependencies

~7.5MB
~133K SLoC