Method MapAsyncApi
- Namespace
- Ratatoskr.AsyncApi.Extensions
- Assembly
- Ratatoskr.dll
MapAsyncApi(IEndpointRouteBuilder, string)
Maps a GET endpoint that returns the generated AsyncAPI v3 document as JSON.
public static IEndpointRouteBuilder MapAsyncApi(this IEndpointRouteBuilder endpoints, string routePattern = "/asyncapi.json")
Parameters
endpointsIEndpointRouteBuilderroutePatternstringThe URL path for the AsyncAPI document. Defaults to
/asyncapi.json.