Swagger UI service.
Implements: RestService
Description
The SwaggerService class allows you to create a Swagger UI service.
Constructors
NewSwaggerService
Creates a new instance of the Swagger service.
NewSwaggerService() *SwaggerService
Methods
register
Registers the Swagger service.
(c *SwaggerService) Register()
RegisterOpenApiSpec
Performs the required Swagger registration steps.
(c *SwaggerService) RegisterOpenApiSpec(baseRoute string, swaggerRoute string)
- baseRoute: string - base route
- swaggerRoute: string - Swagger route