main.io.github.smiley4.ktorswaggerui.data.InfoData.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 - Info Object](https://swagger.io/specification/#info-object).
*/
data class InfoData(
val title: String,
val version: String?,
val description: String?,
val summary: String?,
val termsOfService: String?,
val contact: ContactData?,
val license: LicenseData?,
) {
companion object {
val DEFAULT = InfoData(
title = "API",
version = null,
description = null,
summary = null,
termsOfService = null,
contact = null,
license = null,
)
}
}