33 references to AddOperation
Aspire.Hosting.Azure.ApiManagement (1)
AzureApiManagementExtensions.cs (1)
323apiBuilder.AddOperation(
Aspire.Hosting.Azure.Tests (30)
AzureApiManagementTests.cs (30)
59var operation = api.AddOperation("get-product", "get", "/products/{id}"); 174var operation = api.AddOperation("get-product", "get", "/products/{id}", "Get product"); 200var operation = api.AddOperation( 231api.AddOperation("invalid-operation", "GET", "/", operationName: new string('o', 81))); 255api.AddOperation("long-template", "GET", new string('u', 1001))); 257api.AddOperation("long-display", "GET", "/", new string('d', 301))); 259api.AddOperation("blank-display", "GET", "/", " ")); 322api.AddOperation("get-product", "GET", "/products/{id}", operationName: "physical-operation"); 325() => api.AddOperation("get-other-product", "GET", "/products/other", operationName: "PHYSICAL-OPERATION")); 327() => api.AddOperation("custom-proxy", "GET", "/proxy", operationName: "PrOxY")); 329() => api.AddOperation("custom-proxy-get", "GET", "/proxy", operationName: "PrOxY-GeT")); 331() => api.AddOperation("wildcard-operation", "*", "/{*path}")); 350api.AddOperation("first", "GET", first); 353var exception = Assert.Throws<InvalidOperationException>(() => api.AddOperation("second", "get", second)); 370api.AddOperation("custom", method, template); 393api.AddOperation("custom", method, template); 410api.AddOperation("get-product", "GET", "/products/{id}"); 411api.AddOperation("post-product", "POST", "/products/{id}"); 412api.AddOperation("get-category", "GET", "/categories/{id}"); 413apim.AddApi("other-api", "other").AddOperation("other-product", "GET", "/products/{id}"); 428api.AddOperation("root", "GET", "/"); 429api.AddOperation("wildcard", "GET", "/{*path}"); 447var operation = api.AddOperation("get-products", "get", "/products"); 859api.AddOperation("get-product", "get", "/products/{id}/{*path}", "Get product") 924api.AddOperation("root", "GET", "/"); 1011api.AddOperation("get-product", "GET", "/products/{id}"); 1012api.AddOperation("list-products", "GET", "/products") 1017.AddOperation("other-operation", "GET", "/other"); 1306api.AddOperation("get-product", "GET", "/products/{id}") 2196api.AddOperation("apimPolicyProxy", "GET", "/products")
AzureApiManagement.AppHost (1)
AppHost.cs (1)
85catalogApi.AddOperation(
AzureApiManagementOpenAI.AppHost (1)
AppHost.cs (1)
58blobApi.AddOperation(