Hi all, I am trying to add swagger to a Ktor appli...
# ktor
i
Hi all, I am trying to add swagger to a Ktor application and I found https://github.com/nielsfalk/ktor-swagger and it seems nice, but not really active. Do people use this project, as I can see that there are opened PRs from months ago and that version of the lib for Ktor 1.3 hasn't been released yet? Does anyone know if the author has given up on the library or just doesn't have enough time to work on it lately?
d
Maybe @nfa is the author?
s
i
Thanks for the info, I also decided to try out that library, as the author seems enthusiastic about it, which is great.
Hi @SerVB, can you tell me how to access the swager ui with this library? I created a dummy route, registered it all, now at what URL can I access the GUI? I tried
localhost:8080/swagger-ui/
but that only gets me empty page.
s
@Ivan Brko, maybe you've forgotten those lines: https://github.com/papsign/Ktor-OpenAPI-Generator/blob/e3a6dad4a138ea8e0963e0795a6a0f26f001aaa5/src/test/kotlin/Basic.kt#L66-L68 . I think you should try the example first. Then take some of its lines to your project 😉
i
Thanks!