rustapi icon indicating copy to clipboard operation
rustapi copied to clipboard

Is there an easy way to generate openapi.yaml?

Open JamCh01 opened this issue 1 year ago • 2 comments

Is there an easy way to generate openapi.yaml?

JamCh01 avatar Dec 24 '24 17:12 JamCh01

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.

ndelvalle avatar Jan 02 '25 02:01 ndelvalle

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

seferino-fernandez avatar Mar 07 '25 20:03 seferino-fernandez