main.io.github.smiley4.ktorswaggerui.data.ServerData.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
/**
* See [OpenAPI Specification - Server Object](https://swagger.io/specification/#server-object).
*/
data class ServerData(
val url: String,
val description: String?,
val variables: List
) {
companion object {
val DEFAULT = ServerData(
url = "/",
description = null,
variables = emptyList()
)
}
}