33 references to AddOperation
Aspire.Hosting.Azure.ApiManagement (1)
AzureApiManagementExtensions.cs (1)
323apiBuilder.AddOperation(
Aspire.Hosting.Azure.Tests (30)
AzureApiManagementTests.cs (30)
58var operation = api.AddOperation("get-product", "get", "/products/{id}"); 173var operation = api.AddOperation("get-product", "get", "/products/{id}", "Get product"); 199var operation = api.AddOperation( 230api.AddOperation("invalid-operation", "GET", "/", operationName: new string('o', 81))); 254api.AddOperation("long-template", "GET", new string('u', 1001))); 256api.AddOperation("long-display", "GET", "/", new string('d', 301))); 258api.AddOperation("blank-display", "GET", "/", " ")); 321api.AddOperation("get-product", "GET", "/products/{id}", operationName: "physical-operation"); 324() => api.AddOperation("get-other-product", "GET", "/products/other", operationName: "PHYSICAL-OPERATION")); 326() => api.AddOperation("custom-proxy", "GET", "/proxy", operationName: "PrOxY")); 328() => api.AddOperation("custom-proxy-get", "GET", "/proxy", operationName: "PrOxY-GeT")); 330() => api.AddOperation("wildcard-operation", "*", "/{*path}")); 349api.AddOperation("first", "GET", first); 352var exception = Assert.Throws<InvalidOperationException>(() => api.AddOperation("second", "get", second)); 369api.AddOperation("custom", method, template); 392api.AddOperation("custom", method, template); 409api.AddOperation("get-product", "GET", "/products/{id}"); 410api.AddOperation("post-product", "POST", "/products/{id}"); 411api.AddOperation("get-category", "GET", "/categories/{id}"); 412apim.AddApi("other-api", "other").AddOperation("other-product", "GET", "/products/{id}"); 427api.AddOperation("root", "GET", "/"); 428api.AddOperation("wildcard", "GET", "/{*path}"); 446var operation = api.AddOperation("get-products", "get", "/products"); 858api.AddOperation("get-product", "get", "/products/{id}/{*path}", "Get product") 923api.AddOperation("root", "GET", "/"); 1010api.AddOperation("get-product", "GET", "/products/{id}"); 1011api.AddOperation("list-products", "GET", "/products") 1016.AddOperation("other-operation", "GET", "/other"); 1305api.AddOperation("get-product", "GET", "/products/{id}") 2195api.AddOperation("apimPolicyProxy", "GET", "/products")
AzureApiManagement.AppHost (1)
AppHost.cs (1)
85catalogApi.AddOperation(
AzureApiManagementOpenAI.AppHost (1)
AppHost.cs (1)
58blobApi.AddOperation(