Hi everyone! What is your favorite way to generate...
# ktor
r
Hi everyone! What is your favorite way to generate code-first documentation for your Ktor API (and potentially also generate client code, like with Swagger)? I have tried the Ktor IntelIJ plugin to generate OpenAPI documentation,, but seems to be lacking in features.
m
Kompendium was suggested here to me earlier and I can only agree. Really good stuff!
s
I use ktor-swagger-ui. Easy to use cause it is the Ktor routing DSL but with documentation
m
Never used this ktor-swagger-ui library lol. Found myself having to manually generate the docs with js/css bundles in index.html file and defining api routes in a .yaml file. I remember trying to use ktor-server-swagger or so but it didn't work (I think that's the one in the official ktor docs)