juhaku / utoipa

Simple, Fast, Code first and Compile time generated OpenAPI documentation for Rust
Apache License 2.0
2.01k stars 160 forks source link

Add crate for serving Scalar via utoipa #892

Closed junlarsen closed 2 months ago

junlarsen commented 2 months ago

Hi, thanks for your excellent work on utoipa!

This is a PR for adding Scalar API visualization to the utoipa ecosystem. Scalar is yet another web application for OpenAPI specifications, but I prefer it over Redoc/Rapidoc since it shows the model types too! (also, it's very pretty :D)

Most of the things here were mimicked after the Redoc PR (#720).

Here are some things that I didn't implement now, but could definitely see being useful:

And finally, here is a preview of what the todo-axum docs look like :smiley: image

newtykip commented 2 months ago

Scalar is gorgeous - was considering implementing this feature myself until I saw someone beat me to it! Thank you :]

junlarsen commented 2 months ago

Thank you, when do you think you'll be able to make a release for it?

juhaku commented 1 month ago

Thank you, when do you think you'll be able to make a release for it?

I could make a release soon. There are also some other changes that has been quite a long time there waiting to be released.

junlarsen commented 1 month ago

Thanks for the release!