SMILEY4 / ktor-swagger-ui

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

Add swagger ui routing example #111

Closed Him188 closed 1 month ago

Him188 commented 1 month 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 1 month ago

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