withOpenApiEndpoint

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

Signature

methodwithOpenApiEndpointbuilder
Imports an OpenAPI document exposed by the API's target compute resource.
withOpenApiEndpoint(
documentPath?: string,
endpointName?: string,
format?: AzureApiManagementOpenApiFormat): AzureApiManagementApiResource
documentPathstringoptional= /openapi/v1.jsonThe absolute path of the OpenAPI endpoint, such as `/openapi/v1.json`.
endpointNamestringoptionalThe target endpoint name. An external HTTP or HTTPS endpoint is selected when omitted.
formatAzureApiManagementOpenApiFormatoptionalThe document format. The endpoint path extension is used when omitted.
AzureApiManagementApiResource

Applies to

This method applies to the following types: