23 references to MapDelete
Microsoft.AspNetCore.OpenApi.Microbenchmarks (1)
GenerationBenchmarks.cs (1)
36_builder.MapDelete($"/{i}", (string id) => Results.NoContent());
Microsoft.AspNetCore.OpenApi.Tests (12)
Extensions\OpenApiRouteHandlerBuilderExtensionTests.cs (12)
27_ = builder.MapDelete("/", GetString).WithOpenApi(); 50_ = builder.MapDelete("/", GetString).WithOpenApi(generatedOperation => new OpenApiOperation()); 73_ = builder.MapDelete("/{id}", GetString) 103myGroup.MapDelete("/a", GetString); 108myGroup.MapDelete("/b", GetString); 132myGroup.MapDelete("/a", GetString).Produces<string>(201); 167myGroup.MapDelete("/a", GetString).WithOpenApi(o => new(o) 201WithLocalSummary(builder.MapDelete("/root", GetString)); 206WithLocalSummary(outerGroup.MapDelete("/outer-a", GetString)); 214WithLocalSummary(outerGroup.MapDelete("/outer-b", GetString)); 215WithLocalSummary(innerGroup.MapDelete("/inner-a", GetString)); 222WithLocalSummary(innerGroup.MapDelete("/inner-b", GetString));
Microsoft.AspNetCore.Routing.Tests (8)
Builder\RouteHandlerEndpointRouteBuilderExtensionsTest.cs (8)
44routes.MapDelete(template, action); 225_ = builder.MapDelete("/", (Todo todo) => { }); 284_ = builder.MapDelete("/", (TodoService todo) => { }); 348_ = builder.MapDelete("/", ([TestFromServiceAttribute] TodoService todo) => { }); 412_ = builder.MapDelete("/", ([TestFromBody] Todo todo) => { }); 720_ = builder.MapDelete("/", () => { }); 776_ = builder.MapDelete("/", GetString).WithTags("Some", "Test", "Tags"); 791_ = builder.MapDelete("/", GetString);
MySql.ApiService (1)
Program.cs (1)
56app.MapDelete("/catalog/{id}", async (int id, MySqlConnection db) =>
RateLimitingSample (1)
Program.cs (1)
96app.MapDelete("/todoitems/{id}", async (int id, TodoDb db) =>