Merge pull request #22532 from ElasticMint/main

Update jsonpatch.md
pull/22533/head
Rick Anderson 2021-06-11 20:36:55 -07:00 committed by GitHub
commit 12dbc906b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -46,6 +46,8 @@ The preceding code requires the `Microsoft.AspNetCore.Mvc.NewtonsoftJson` packag
[!code-csharp[](jsonpatch/samples/3.0/WebApp1/Startup.cs?name=snippet1)]
Use the `Newtonsoft.Json.JsonConvert.SerializeObject` method to serialize a JsonPatchDocument.
## PATCH HTTP request method
The PUT and [PATCH](https://tools.ietf.org/html/rfc5789) methods are used to update an existing resource. The difference between them is that PUT replaces the entire resource, while PATCH specifies only the changes.