25 references to MapPatch
Microsoft.AspNetCore.JsonPatch.SystemTextJson.Tests (2)
JsonPatchContentTypeEndToEndTest.cs (2)
40endpoints.MapPatch("/untyped", (JsonPatchDocument patch) => { }); 41endpoints.MapPatch("/typed", (JsonPatchDocument<SimpleObject> patch) => { });
Microsoft.AspNetCore.JsonPatch.Tests (2)
JsonPatchContentTypeEndToEndTest.cs (2)
41endpoints.MapPatch("/untyped", (JsonPatchDocument patch) => { }); 42endpoints.MapPatch("/typed", (JsonPatchDocument<SimpleObject> patch) => { });
Microsoft.AspNetCore.OpenApi.Tests (14)
Services\OpenApiDocumentService\OpenApiDocumentServiceTests.RequestBody.cs (14)
1144builder.MapPatch("/", (JsonPatchDocument patch) => { }); 1173builder.MapPatch("/", (JsonPatchDocument? patch) => { }); 1177builder.MapPatch("/", (JsonPatchDocument patch) => { }); 1199builder.MapPatch("/", ([FromBody] JsonPatchDocument patch) => { }); 1223builder.MapPatch("/", (JsonPatchDocument name) => { }).Accepts(typeof(JsonPatchDocument), "application/vnd.github.patch+json"); 1248builder.MapPatch("/", [Consumes(typeof(JsonPatchDocument), "application/vnd.github.patch+json")] (JsonPatchDocument patch) => { }); 1273builder.MapPatch("/", (JsonPatchDocument<JsonPatchModel> patch) => { }); 1302builder.MapPatch("/", (JsonPatchDocument<JsonPatchModel>? patch) => { }); 1306builder.MapPatch("/", (JsonPatchDocument<JsonPatchModel> patch) => { }); 1328builder.MapPatch("/", ([FromBody] JsonPatchDocument<JsonPatchModel> patch) => { }); 1352builder.MapPatch("/", (JsonPatchDocument<JsonPatchModel> name) => { }) 1378builder.MapPatch("/", [Consumes(typeof(JsonPatchDocument<JsonPatchModel>), "application/vnd.github.patch+json")] (JsonPatchDocument<JsonPatchModel> patch) => { }); 1414builder.MapPatch("/", (CustomJsonPatchDocument patch) => { }); 1440builder.MapPatch("/", (CustomJsonPatchDocument<JsonPatchModel> patch) => { });
Microsoft.AspNetCore.Routing.Tests (5)
Builder\RouteHandlerEndpointRouteBuilderExtensionsTest.cs (5)
47routes.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)
40schemas.MapPatch("/json-patch", (JsonPatchDocument patchDoc) => Results.NoContent()); 41schemas.MapPatch("/json-patch-generic", (JsonPatchDocument<ParentObject> patchDoc) => Results.NoContent());