Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add crate for serving Scalar via utoipa #892

Merged
merged 6 commits into from
May 1, 2024
Merged

Conversation

junlarsen
Copy link
Contributor

@junlarsen junlarsen commented Apr 15, 2024

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).

  • The crate has been added to the CI/publish/test scripts
  • The todo-axum/todo-actix/todo-rocket examples now serve Scalar too under /scalar
  • The crate has been implemented for axum, actix-web, and rocket

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 😃
image

@newtykip
Copy link

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

Copy link
Owner

@juhaku juhaku left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Superb work 🥇 Thanks for your time working on this.

@juhaku juhaku merged commit 613b3ad into juhaku:master May 1, 2024
7 checks passed
@junlarsen
Copy link
Contributor Author

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

@juhaku
Copy link
Owner

juhaku commented May 5, 2024

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
Copy link
Contributor Author

Thanks for the release!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants