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