Package-level declarations

Types

Link copied to clipboard

A configuration for the Swagger UI endpoint.

Functions

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

Adds a Swagger UI endpoint to the current route.

fun Route.swaggerUI(path: String, apiFile: File, block: SwaggerConfig.() -> Unit = {}): Route

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

fun Route.swaggerUI(path: String, swaggerFile: String, block: SwaggerConfig.() -> Unit = {}): Route

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

fun Route.swaggerUI(path: String, apiUrl: String, api: String, block: SwaggerConfig.() -> Unit = {}): Route

Configures a route to serve Swagger UI and its corresponding API specification.