main.io.github.smiley4.ktorswaggerui.data.SpecAssigner.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ktor-swagger-ui Show documentation
Show all versions of ktor-swagger-ui Show documentation
Ktor plugin to document routes and provide a Swagger-UI
package io.github.smiley4.ktorswaggerui.data
/**
* Assigns (unassigned) routes to api-specs.
* url - the parts of the route-url split at all `/`.
* tags - the tags assigned to the route
*/
typealias SpecAssigner = (url: String, tags: List) -> String