C# Class Swashbuckle.Application.SwaggerUiConfig

Show file Open project: BenjaminAdams/Swashbuckle-blue Class Usage Examples

Public Methods

Method Description
BooleanValues ( IEnumerable values ) : void
CustomAsset ( string path, Assembly resourceAssembly, string resourceName ) : void
CustomLogo ( string url ) : void
CustomSwagDocLocation ( string url ) : void
DisableValidator ( ) : void
DocExpansion ( DocExpansion docExpansion ) : void
EnableDiscoveryUrlSelector ( ) : void
EnableOAuth2Support ( string clientId, string realm, string appName ) : void
EnableOAuth2Support ( string clientId, string clientSecret, string realm, string appName ) : void
InjectJavaScript ( Assembly resourceAssembly, string resourceName ) : void
InjectStylesheet ( Assembly resourceAssembly, string resourceName, string media = "screen" ) : void
SetApiKeyDetails ( Swashbuckle.Application.SecuritySchemeBuilder sec ) : void
SetValidatorUrl ( string url ) : void
SwaggerUiConfig ( IEnumerable discoveryPaths, string>.Func rootUrlResolver ) : System

Private Methods

Method Description
GetRootUrl ( HttpRequestMessage swaggerRequest ) : string
GetSwaggerUiProvider ( ) : IAssetProvider
MapPathsForSwaggerUiAssets ( ) : void

Method Details

BooleanValues() public method

public BooleanValues ( IEnumerable values ) : void
values IEnumerable
return void

CustomAsset() public method

public CustomAsset ( string path, Assembly resourceAssembly, string resourceName ) : void
path string
resourceAssembly System.Reflection.Assembly
resourceName string
return void

CustomLogo() public method

public CustomLogo ( string url ) : void
url string
return void

CustomSwagDocLocation() public method

public CustomSwagDocLocation ( string url ) : void
url string
return void

DisableValidator() public method

public DisableValidator ( ) : void
return void

DocExpansion() public method

public DocExpansion ( DocExpansion docExpansion ) : void
docExpansion DocExpansion
return void

EnableDiscoveryUrlSelector() public method

public EnableDiscoveryUrlSelector ( ) : void
return void

EnableOAuth2Support() public method

public EnableOAuth2Support ( string clientId, string realm, string appName ) : void
clientId string
realm string
appName string
return void

EnableOAuth2Support() public method

public EnableOAuth2Support ( string clientId, string clientSecret, string realm, string appName ) : void
clientId string
clientSecret string
realm string
appName string
return void

InjectJavaScript() public method

public InjectJavaScript ( Assembly resourceAssembly, string resourceName ) : void
resourceAssembly System.Reflection.Assembly
resourceName string
return void

InjectStylesheet() public method

public InjectStylesheet ( Assembly resourceAssembly, string resourceName, string media = "screen" ) : void
resourceAssembly System.Reflection.Assembly
resourceName string
media string
return void

SetApiKeyDetails() public method

public SetApiKeyDetails ( Swashbuckle.Application.SecuritySchemeBuilder sec ) : void
sec Swashbuckle.Application.SecuritySchemeBuilder
return void

SetValidatorUrl() public method

public SetValidatorUrl ( string url ) : void
url string
return void

SwaggerUiConfig() public method

public SwaggerUiConfig ( IEnumerable discoveryPaths, string>.Func rootUrlResolver ) : System
discoveryPaths IEnumerable
rootUrlResolver string>.Func
return System