https://kotlinlang.org logo
#ktor
Title
# ktor
g

gotoOla

05/13/2020, 9:13 AM
Does anyone here know about a good way of documenting your APIs with ktor? (something like swagger codegen but it doesn't have to be swagger, anything that produces documentation would be 👍 )
e

e5l

05/13/2020, 9:14 AM
Hi @gotoOla, we're using https://github.com/Kotlin/dokka for api.ktor.io
g

gotoOla

05/13/2020, 9:16 AM
@e5l cool! By just having a quick glance at it, it sounds like it's producing the equivalent of JavaDoc right? Do you know if there's anyway to produce REST/HTTP API documentation based on your routes? (sorry, should've been clearer in my original question)
e

e5l

05/13/2020, 9:18 AM
@Vadim Briliantov
g

gotoOla

05/13/2020, 9:20 AM
Oh don't know how I've missed that one. Thanks a lot!
😉 1
v

Vadim Briliantov

05/13/2020, 1:26 PM
We are working on Swagger API generation support now but it may not be ready soon. For now you can try to use a third party version : https://github.com/nielsfalk/ktor-swagger