Skip to content

Instantly share code, notes, and snippets.

@justinyoo
Created October 25, 2015 10:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justinyoo/790a961c6df8ca3abb08 to your computer and use it in GitHub Desktop.
Save justinyoo/790a961c6df8ca3abb08 to your computer and use it in GitHub Desktop.
[assembly: PreApplicationStartMethod(typeof(SwaggerConfig), "Register")]
namespace HalSwaggerSample.HalApiApp
{
public class SwaggerConfig
{
public static void Register()
{
...
GlobalConfiguration.Configuration
.EnableSwagger(c =>
...
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment