Swagger UI service.
Inherits: ISwaggerService, IConfigurable, IReferenceable, IInitializable
Description
The SwaggerService class allows you to create a Swagger UI service.
Fields
Instance methods
Configure
Configures a component by its passing configuration parameters.
public virtual
void Configure(ConfigParams config)
- config: ConfigParams - configuration parameters to be set.
Initialize
TODO: add description
public
void Initialize(IApplicationBuilder applicationBuilder)
- applicationBuilder: IApplicationBuilder - TODO: add description
RegisterOpenApiSpec
Performs the required Swagger registration steps.
public
void RegisterOpenApiSpec(string baseRoute, string swaggerRoute)
- baseRoute: string - base route
- swaggerRoute: string - Swagger route
SetReferences
Sets references to dependent components.
public virtual
void SetReferences(IReferences references)
- references: IReferences - references to locate the component dependencies.