swaggerUI
Creates a get endpoint with SwaggerUI at path rendered from the OpenAPI file located at swaggerFile.
This method tries to lookup swaggerFile in the resources first, and if it's not found, it will try to read it from the file system using java.io.File.
If source is supplied inside the config block, the swaggerFile argument will take precedence.
Creates a get endpoint with swaggerUI at path rendered from the apiFile.
If source is supplied inside the config block, the apiFile argument will take precedence.
Configures a route to serve Swagger UI and its corresponding API specification.
This function sets up a given path to serve a Swagger UI interface based on the provided API specification.
If source is supplied inside the config block, the api argument will take precedence.
Parameters
The base path where the Swagger UI will be accessible.
The relative URL for the Swagger API JSON file.
The content of the Swagger API specification.
A configuration block to apply additional Swagger configuration settings.
Adds a Swagger UI endpoint to the current route.
Parameters
The root path where the Swagger UI will be available.
Configuration block for customizing the Swagger UI, such as defining the OpenAPI specification source.