Table of Contents

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

endpoints IEndpointRouteBuilder
routePattern string

The URL path for the AsyncAPI document. Defaults to /asyncapi.json.

Returns

IEndpointRouteBuilder