Skip to content

Instantly share code, notes, and snippets.


justinyoo/SchemaDocumentFilter.cs Secret

Last active Mar 1, 2016
What would you like to do?
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