/// <summary>
 /// Configures the UI elements / front end functionality of swagger
 /// </summary>
 /// <param name="uiConfig"></param>
 private static void ConfigureSwaggerUI(SwaggerUiConfig uiConfig)
 {
     uiConfig.DocExpansion(DocExpansion.None);
     uiConfig.DisableValidator();
     uiConfig.EnableDiscoveryUrlSelector();
 }
예제 #2
0
 private static void ConfigureUi(SwaggerUiConfig config)
 {
     config.DocExpansion(DocExpansion.List);
     config.DisableValidator();
 }