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

snackycracky

08/27/2019, 8:25 AM
Hey 🙂 what is the “official” way to autogenerate OpenAPI or Swagger specs in ktor ?
1
b

Big Chungus

08/27/2019, 8:26 AM
s

snackycracky

08/27/2019, 8:30 AM
there is no such plugin for swagger or openapi
b

Big Chungus

08/27/2019, 8:31 AM
You can attach the spec files and it'll generate the routes for you
s

snackycracky

08/27/2019, 8:31 AM
thanks but I would like to do it the other way around
b

Big Chungus

08/27/2019, 8:31 AM
image.png
s

snackycracky

08/27/2019, 8:31 AM
yeah, saw this too late
thanks
b

Big Chungus

08/27/2019, 8:32 AM
Ah 😄 Misunderstood your issue, then.
s

snackycracky

08/27/2019, 8:32 AM
but I want to generate specs from the routes 😉
b

Big Chungus

08/27/2019, 8:32 AM
I'd be interested in such tool myself.
s

snackycracky

08/27/2019, 8:33 AM
actually the “api-first” approach would make my question obsolete 🤔
actually I should design the swagger-spec first and then generate the routes
thanks for showing me that button @Big Chungus
makes total sense
b

bram93

08/27/2019, 12:20 PM
I'm working on a plug-in to auto generate swagger specs
s

snackycracky

08/27/2019, 5:09 PM
great
6 Views