Swashbuckle.AspNetCore.Swagger Register the Swagger middleware with provided options Register the Swagger middleware with optional setup action for DI-injected options Return Swagger JSON in the V2 format rather than V3 Actions that can be applied SwaggerDocument's before they're serialized to JSON. Useful for setting metadata that's derived from the current request Sets a custom route for the Swagger JSON/YAML endpoint(s). Must include the {documentName} parameter Return Swagger JSON/YAML in the V2 format rather than V3 Actions that can be applied to an OpenApiDocument before it's serialized. Useful for setting metadata that's derived from the current request