Hi, please is there a way to automatically generat...
# server
s
Hi, please is there a way to automatically generate swagger ui in ktor?
h
Hey ya. The same build tool plugins should work here as well. What did you use before?
a
wooow, you could do this? how?
h
What build tool do you use?
a
<waited for the one who asked to answer> I am using gradle
Oh, wait, sorry
This is the other way around, so generating code based on OpenAPI specs
Dang it, I can’t find the link any more. There was something
Sorry, really can’t find it right now
There are many tools you can feed the API yml . IIRC IntelliJ has something build in
c
There's an issue in the Ktor YouTrack about that. It was recently moved to their backlog.
m
So if you want to go from Ktor code -> OpenAPI/Swagger -- there's this project: https://github.com/papsign/Ktor-OpenAPI-Generator And I liked this introduction to the vibe, though this person ended up forking the open source project above: https://medium.com/nerd-for-tech/openapi-generation-with-ktor-d57879ec5ab0
👍 1
290 Views