With Ktor, do we have an easy way as with Spring to decorate methods to automatically generate OpenAPI definitions or some plugin in IntelliJ to generate it based on the available routes etc?
Would be very handy. If there isn't any out there that is convenient, I'm thinking of creating one. But would be awesome if someone already built it!
03/28/2023, 6:01 PM
I've been using Tegral OpenAPI, Example.
You can easily also create top-level functions for common things, common OpenAPI functions.
I'd love something like this but 1st party, and integrated with Resources plugin but it's been fulfilling all my needs so far so I haven't really bother looking deeply into it 😄
I like it because it works with the existing Ktor API, instead of building a new Route DSL as some other libraries have done.