This is folder contain a set of examples of utoipa library which should help people to get started with the library.
All examples have their own README.md
, and can be seen using two steps:
- Run
cargo run
- Browse to
http://localhost:8080/swagger-ui/
orhttp://localhost:8080/redoc
orhttp://localhost:8080/rapidoc
.
todo-actix
, todo-axum
and rocket-todo
have Swagger UI, Redoc, RapiDoc, and Scalar setup, others have Swagger UI
if not explicitly stated otherwise.
Even if there is no example for your favourite framework, utoipa
can be used with any
web framework which supports decorating functions with macros similarly to the warp and tide examples.