swagger

fun Routing.swagger(pageTitle: String = "Docs", specUrl: String = "/openapi.json")

Provides an out-of-the-box route to view docs using Swagger

Parameters

pageTitle

Webpage title you wish to be displayed on your docs

specUrl

url to point Swagger to the OpenAPI json document