using System.Web.Http; using WebActivatorEx; using Neo.LegitimateLicences.Api; using Swashbuckle.Application; [assembly: PreApplicationStartMethod(typeof(SwaggerConfig), "Register")] namespace Neo.LegitimateLicences.Api { public class SwaggerConfig { public static void Register() { var thisAssembly = typeof(SwaggerConfig).Assembly; GlobalConfiguration.Configuration .EnableSwagger(c => c.SingleApiVersion("v1", "Neo.LegitimateLicences.Api")) .EnableSwaggerUi(); } } }