SwaggerController

Swagger UI service.

Implements: ISwaggerController

Extends: RestController

Description

The SwaggerController class allows you to create a Swagger UI service.

Instance methods

register

Registers the Swagger service.

public register()

registerOpenApiSpec

Performs the required Swagger registration steps.

public registerOpenApiSpec(baseRoute: string, swaggerRoute?: string): void

  • baseRoute: string - base route
  • swaggerRoute: string - Swagger route