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

gotoOla

01/21/2020, 9:14 AM
does anyone use any swagger/openapi implementation where the documentation is derived from their ktor code? I know I looked it up a year or so ago but at that point it seemed quite early days
b

bitkid

01/21/2020, 1:51 PM
i did something "crazy" mixing the open-api annotations with the ktor location api and some ugly glue code .. but i wouldn't recommend it 🙂 but i would be willing to contribute to a clean solution
one showstopper was that the location API does not specify the type of request (PUT, POST etc) which doesn't make it compatible with the way they handle jax-rs annotations
another thing was that some of the jax-rs annotation work on class level .. and you can't use them on extension methods
i am not sure about how active the location API is maintained .. maybe one could figure something out talking to the devs