Package-level declarations

Types

Link copied to clipboard

A configuration for the Swagger UI endpoint.

Functions

Link copied to clipboard
fun Routing.swaggerUI(path: String, apiFile: File, block: SwaggerConfig.() -> Unit = {})

Creates a get endpoint with SwaggerUI at path rendered from the apiFile.

fun Routing.swaggerUI(path: String, swaggerFile: String = "openapi/documentation.yaml", block: SwaggerConfig.() -> Unit = {})

Creates a get endpoint with SwaggerUI at path rendered from the OpenAPI file located at swaggerFile.