SMILEY4 / ktor-swagger-ui

Kotlin Ktor plugin to generate OpenAPI and provide Swagger UI
Apache License 2.0
182 stars 33 forks source link

Add swagger ui routing example #111

Closed Him188 closed 5 months ago

Him188 commented 5 months ago

One of the most important thing I want when using this plugin is to serve a swagger UI. However this is missing from the README and requires effort to find it.

     route("swagger") {
            swaggerUI("/api.json")
        }
SMILEY4 commented 5 months ago

Hi, thanks for the hint. Example in the readme is fixed now :+1: