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)
103
myGroup.
MapDelete
("/a", GetString);
108
myGroup.
MapDelete
("/b", GetString);
132
myGroup.
MapDelete
("/a", GetString).Produces<string>(201);
167
myGroup.
MapDelete
("/a", GetString).WithOpenApi(o => new(o)
201
WithLocalSummary(builder.
MapDelete
("/root", GetString));
206
WithLocalSummary(outerGroup.
MapDelete
("/outer-a", GetString));
214
WithLocalSummary(outerGroup.
MapDelete
("/outer-b", GetString));
215
WithLocalSummary(innerGroup.
MapDelete
("/inner-a", GetString));
222
WithLocalSummary(innerGroup.
MapDelete
("/inner-b", GetString));
Microsoft.AspNetCore.Routing.Tests (8)
Builder\RouteHandlerEndpointRouteBuilderExtensionsTest.cs (8)
44
routes.
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)
56
app.
MapDelete
("/catalog/{id}", async (int id, MySqlConnection db) =>
RateLimitingSample (1)
Program.cs (1)
96
app.
MapDelete
("/todoitems/{id}", async (int id, TodoDb db) =>