21 references to MapPatch
Microsoft.AspNetCore.OpenApi.Tests (14)
Services\OpenApiDocumentService\OpenApiDocumentServiceTests.RequestBody.cs (14)
1144
builder.
MapPatch
("/", (JsonPatchDocument patch) => { });
1173
builder.
MapPatch
("/", (JsonPatchDocument? patch) => { });
1177
builder.
MapPatch
("/", (JsonPatchDocument patch) => { });
1199
builder.
MapPatch
("/", ([FromBody] JsonPatchDocument patch) => { });
1223
builder.
MapPatch
("/", (JsonPatchDocument name) => { }).Accepts(typeof(JsonPatchDocument), "application/vnd.github.patch+json");
1246
builder.
MapPatch
("/", [Consumes(typeof(JsonPatchDocument), "application/vnd.github.patch+json")] (JsonPatchDocument patch) => { });
1269
builder.
MapPatch
("/", (JsonPatchDocument<JsonPatchModel> patch) => { });
1298
builder.
MapPatch
("/", (JsonPatchDocument<JsonPatchModel>? patch) => { });
1302
builder.
MapPatch
("/", (JsonPatchDocument<JsonPatchModel> patch) => { });
1324
builder.
MapPatch
("/", ([FromBody] JsonPatchDocument<JsonPatchModel> patch) => { });
1348
builder.
MapPatch
("/", (JsonPatchDocument<JsonPatchModel> name) => { })
1372
builder.
MapPatch
("/", [Consumes(typeof(JsonPatchDocument<JsonPatchModel>), "application/vnd.github.patch+json")] (JsonPatchDocument<JsonPatchModel> patch) => { });
1406
builder.
MapPatch
("/", (CustomJsonPatchDocument patch) => { });
1432
builder.
MapPatch
("/", (CustomJsonPatchDocument<JsonPatchModel> patch) => { });
Microsoft.AspNetCore.Routing.Tests (5)
Builder\RouteHandlerEndpointRouteBuilderExtensionsTest.cs (5)
47
routes.
MapPatch
(template, action);
116
_ = builder.
MapPatch
("/", () => { });
304
_ = builder.
MapPatch
("/", (TodoService todo) => { });
368
_ = builder.
MapPatch
("/", ([TestFromServiceAttribute] TodoService todo) => { });
432
_ = builder.
MapPatch
("/", ([TestFromBody] Todo todo) => { });
Sample (2)
Endpoints\MapSchemasEndpoints.cs (2)
40
schemas.
MapPatch
("/json-patch", (JsonPatchDocument patchDoc) => Results.NoContent());
41
schemas.
MapPatch
("/json-patch-generic", (JsonPatchDocument<ParentObject> patchDoc) => Results.NoContent());