diff --git a/src/Tingle.AspNetCore.JsonPatch/README.md b/src/Tingle.AspNetCore.JsonPatch/README.md index 2229068..9266b96 100644 --- a/src/Tingle.AspNetCore.JsonPatch/README.md +++ b/src/Tingle.AspNetCore.JsonPatch/README.md @@ -34,6 +34,7 @@ For example, the following JSON documents represent a resource, a JSON Merge Pat ```json { + "id": "1", "name": null, "phone": "+254722000000", "country": "ken" @@ -54,12 +55,15 @@ For example, the following JSON documents represent a resource, a JSON Merge Pat ```json { + "id": "1", "name": "Fabrikam", "phone": "+254722000001", "country": null } ``` +`id` property remains unchanged as it is not part of the merge patch request. + ### JSON Merge Patch in ASP.NET Core Define a `Customer` model: @@ -73,7 +77,7 @@ class Customer } ``` -Add the following logic in the `program.cs` file. This same logic can be added to `startup.cs`. +Add the following logic in the `Program.cs` file. This same logic can be added to `Startup.cs`. ```cs var builder = WebApplication.CreateBuilder(args);