21 references to MapPatch
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"); 1246builder.MapPatch("/", [Consumes(typeof(JsonPatchDocument), "application/vnd.github.patch+json")] (JsonPatchDocument patch) => { }); 1269builder.MapPatch("/", (JsonPatchDocument<JsonPatchModel> patch) => { }); 1298builder.MapPatch("/", (JsonPatchDocument<JsonPatchModel>? patch) => { }); 1302builder.MapPatch("/", (JsonPatchDocument<JsonPatchModel> patch) => { }); 1324builder.MapPatch("/", ([FromBody] JsonPatchDocument<JsonPatchModel> patch) => { }); 1348builder.MapPatch("/", (JsonPatchDocument<JsonPatchModel> name) => { }) 1372builder.MapPatch("/", [Consumes(typeof(JsonPatchDocument<JsonPatchModel>), "application/vnd.github.patch+json")] (JsonPatchDocument<JsonPatchModel> patch) => { }); 1406builder.MapPatch("/", (CustomJsonPatchDocument patch) => { }); 1432builder.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());