Swagger UI
Library for Ktor applications to serve Swagger UI - visualize and interact with generated OpenAPI specifications.
Swagger UI provides an interactive interface for exploring API endpoints, testing requests directly in the browser, and viewing detailed schema information.
routing {
route("swagger") {
swaggerUI("/openapiSpec.json")
}
}
Features
- Explore and interact with OpenAPI specifications generated by
ktor-openapior external specifications - Expose multiple "instances" of Swagger UI (e.g. for different OpenAPI specifications)
- All Swagger UI configuration options available
- Serves bundled Swagger UI