loco-rs / loco

🚂 🦀 The one-person framework for Rust for side-projects and startups
https://loco.rs
Apache License 2.0
3.83k stars 162 forks source link

Swagger UI #632

Open BWStearns opened 2 months ago

BWStearns commented 2 months ago

Feature Request

I find it really helpful to have SwaggerUI for my APIs. It especially helps for working with frontend devs who might not speak Rust.

Utopia-swagger-ui looks like a good option and they already have an Axum integration so it seems like a

There are other swagger-ui implementations in Rust but Utopia looks like the closest to a drop-in solution.

Related issue #612.

shakhzodkudratov commented 1 month ago

Hello, I'm also doing a research in this field. Try to use poem with its built-in openapi support. It is a pleasure to me after utoipa, where you need to manually wire utoipa itself separately and type every parameter, property. utoipa is unsound, it doesn't make checks and lies (mostly because you forgot to fix some routes)

Heiss commented 3 weeks ago

Hello, I'm also doing a research in this field. Try to use poem with its built-in openapi support. It is a pleasure to me after utoipa, where you need to manually wire utoipa itself separately and type every parameter, property. utoipa is unsound, it doesn't make checks and lies (mostly because you forgot to fix some routes)

Maybe should give aide a try. I do not have time to test it with loco right now, but was discussed in axum issues already. The examples seems very promissing to me.

depth-liu commented 2 weeks ago

salvo is another good alternative with very nice OpenAPI integration and is simple to use.