SwaggerGeneratorSettingsExtensions.

UseBasePath(SwaggerGeneratorSettings, string) Method

Summary

Sets the base path for use in the Swagger specification

Syntax

public static SwaggerGeneratorSettings UseBasePath(this SwaggerGeneratorSettings settings, string basePath)

Parameters

Name Type Description
settings SwaggerGeneratorSettings The settings
basePath string Base path to set in the generated specification

Return Value

Type Description
SwaggerGeneratorSettings The updated settings object