public void FixtureSetup() { SwaggerUiConfig.Customize(c => { c.SupportHeaderParams = true; c.SupportedSubmitMethods = new[] { HttpMethod.Get, HttpMethod.Post, HttpMethod.Put, HttpMethod.Head }; c.DocExpansion = DocExpansion.Full; c.InjectJavaScript(GetType().Assembly, "Swashbuckle.Tests.Support.testScript1.js"); c.InjectJavaScript(GetType().Assembly, "Swashbuckle.Tests.Support.testScript2.js"); c.InjectStylesheet(GetType().Assembly, "Swashbuckle.Tests.Support.testStyles1.css"); c.InjectStylesheet(GetType().Assembly, "Swashbuckle.Tests.Support.testStyles2.css"); }); _handler = new SwaggerUiHandler(); }
public void FixtureSetup() { SwaggerUiConfig.Customize(c => { c.SupportHeaderParams = true; c.SupportedSubmitMethods = new[] { HttpMethod.Get, HttpMethod.Post, HttpMethod.Put, HttpMethod.Head }; c.DocExpansion = DocExpansion.Full; var resourceAssembly = typeof (Dummy.SwaggerConfig).Assembly; c.InjectJavaScript(resourceAssembly, "Swashbuckle.Dummy.SwaggerExtensions.testScript1.js"); c.InjectJavaScript(resourceAssembly, "Swashbuckle.Dummy.SwaggerExtensions.testScript2.js"); c.InjectStylesheet(resourceAssembly, "Swashbuckle.Dummy.SwaggerExtensions.testStyles1.css"); c.InjectStylesheet(resourceAssembly, "Swashbuckle.Dummy.SwaggerExtensions.testStyles2.css"); }); _handler = new SwaggerUiHandler(); }