Created
April 30, 2015 09:54
-
-
Save cmatskas/8c33d79c670f68c3ba24 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Web.Http; | |
using WebActivatorEx; | |
using SwaggerTest; | |
using Swashbuckle.Application; | |
[assembly: PreApplicationStartMethod(typeof(SwaggerConfig), "Register")] | |
namespace SwaggerTest | |
{ | |
public class SwaggerConfig | |
{ | |
public static void Register() | |
{ | |
var thisAssembly = typeof(SwaggerConfig).Assembly; | |
GlobalConfiguration.Configuration | |
.EnableSwagger(c => c.SingleApiVersion("v1", "SwaggerTest")) | |
.EnableSwaggerUi(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment