Skip to content

Instantly share code, notes, and snippets.

@justinyoo
Last active March 1, 2016 12:15
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save justinyoo/b1068979411fb2f0d6f2 to your computer and use it in GitHub Desktop.
API Management Tips & Tricks
public class SchemaDocumentFilter : IDocumentFilter
{
public void Apply(SwaggerDocument swaggerDoc, DocumentFilterContext context)
{
swaggerDoc.Host = "localhost:44321";
swaggerDoc.BasePath = "/";
swaggerDoc.Schemes = new List<string>() { "https" };
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment