https://kotlinlang.org logo
Title
a

Amardeep

09/10/2019, 7:48 AM
Hello Everyone, I need some inputs regarding ktor swagger integration. I am prepping up to replace spring boot with ktor and want to showcase ktor to my team. So far the only missing feature I have found is Swagger support. This might prevent us to adopt ktor in near future. I haven’t so far found any definite answer or road map on the internet as well. Any thoughts!
t

tddmonkey

09/10/2019, 10:18 AM
what kind of swagger support?
a

Amardeep

09/10/2019, 10:34 AM
Swagger UI similar to Spring Boot where API documentation is generated by annotating controllers. https://www.baeldung.com/swagger-2-documentation-for-spring-rest-api
t

tddmonkey

09/10/2019, 10:44 AM
so the support you’re looking for is bootstrapping swagger UI?
It wasn’t clear from your original question - swagger comes in many flavours
a

Amardeep

09/10/2019, 11:22 AM
Yes
l

Luis Munoz

09/17/2019, 9:39 PM
you mean specifically you want the auto swagger generation based on the methods created
if you do api first design you can use this:
then you can do open Api 3 instead of 2, because I think spring rest only support 2 at this point