addOperation

Method
📦 Aspire.Hosting.Azure.ApiManagement v17.0.0-preview.1.26567.5
interface AzureApiManagementApiResource {
// ... omitted for brevity
addOperation(
name: string,
method: string,
urlTemplate: string,
displayName?: string,
operationName?: string): AzureApiManagementOperationResource;
}

Signature

methodaddOperationbuilder
Adds an explicitly modeled operation to an API.
addOperation(
name: string,
method: string,
urlTemplate: string,
displayName?: string,
operationName?: string): AzureApiManagementOperationResource
namestringThe globally unique Aspire resource name and default physical operation name.
methodstringThe HTTP method.
urlTemplatestringThe URL template relative to the API path.
displayNamestringoptionalThe operation display name. The resource name is used when omitted.
operationNamestringoptionalThe physical operation identifier in API Management. The Aspire resource name is used when omitted.
AzureApiManagementOperationResource

Applies to

This method applies to the following types: