rustapi
rustapi copied to clipboard
Is there an easy way to generate openapi.yaml?
Is there an easy way to generate openapi.yaml?
I am not sure. I created the file manually. At that time, there was no generator to do it automatically. I am now looking around and see there are some tools like https://github.com/kurtbuilds/oasgen, but I have not tested them.
I just wanted to leave my recommendation for the crate utoipa - https://github.com/juhaku/utoipa
Here's the Axum integration information - https://github.com/juhaku/utoipa/tree/master/utoipa-axum