KestrunHostMapExtensions.AddOpenApiMapRoute method
Adds a route to the KestrunHost that serves OpenAPI documents based on the provided options.
public static KestrunHost AddOpenApiMapRoute(this KestrunHost host, OpenApiMapRouteOptions options)
| parameter | description |
|---|---|
| host | The KestrunHost instance. |
| options | The OpenApiMapRouteOptions instance. |
Return Value
The KestrunHost instance for chaining.
See Also
- class KestrunHost
- record OpenApiMapRouteOptions
- class KestrunHostMapExtensions
- namespace Kestrun.Hosting