withOpenApiDocument

Method
📦 Aspire.Hosting.Azure.ApiManagement v17.0.0-preview.1.26567.5
interface AzureApiManagementApiResource {
// ... omitted for brevity
withOpenApiDocument(
documentPath: string,
format?: AzureApiManagementOpenApiFormat): AzureApiManagementApiResource;
}

Signature

methodwithOpenApiDocumentbuilder
Imports an OpenAPI document from a file into an API.
withOpenApiDocument(
documentPath: string,
format?: AzureApiManagementOpenApiFormat): AzureApiManagementApiResource
documentPathstringThe document path, relative to the AppHost directory when not absolute.
formatAzureApiManagementOpenApiFormatoptionalThe document format. The file extension is used when omitted.
AzureApiManagementApiResource

Applies to

This method applies to the following types: