https://kotlinlang.org logo
Title
v

Vadim Briliantov

03/10/2020, 6:53 PM
Hi, I am now researching the situation with Swagger support in Ktor. If anyone is using Swagger please tell me which problems are you facing? I also found this project: https://github.com/nielsfalk/ktor-swagger?files=1 and some other community-driven implementation. If anyone tried them please tell your experience. Any response would be appreciated
m

Michal Harakal

03/12/2020, 8:42 PM
icerock guys made nice work in moko-network lib https://github.com/icerockdev/moko-network and there is already multiplatfrom support with ktor in code-generator https://github.com/OpenAPITools/openapi-generator/pull/3900 meanwhile merged. I am using older fork of that generator in my project only for “data classes” generation in and api client is still hand written.
:tnx: 1
I have also find quite difficult a code generation with templates. I’ve had played a little bit with openapi parser and kotlinpoet
v

Vadim Briliantov

03/19/2020, 12:08 PM
@Michal Harakal , have you tried anything for generating API from ktor code?
m

Michal Harakal

03/19/2020, 12:11 PM
I am not sure, if I’ve got the question, I was playing only with code generation on the client side (for Kotlinmultilatform, Android and iOS)