{"id":15410483,"url":"https://github.com/marusyk/simple.httppatch","last_synced_at":"2025-04-19T08:06:19.930Z","repository":{"id":70579490,"uuid":"105284402","full_name":"Marusyk/Simple.HttpPatch","owner":"Marusyk","description":"Simple.HttpPatch implementation for .NET to easily allow \u0026 apply partial REST-ful service (through Web API) using Http Patch","archived":false,"fork":false,"pushed_at":"2024-11-05T11:06:34.000Z","size":61,"stargazers_count":20,"open_issues_count":0,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-07T19:51:40.496Z","etag":null,"topics":["hacktoberfest","http-patch","json","patch","rest","restful-api","webapi"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Marusyk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-09-29T14:53:31.000Z","updated_at":"2025-03-30T22:52:57.000Z","dependencies_parsed_at":"2024-10-20T14:21:29.503Z","dependency_job_id":null,"html_url":"https://github.com/Marusyk/Simple.HttpPatch","commit_stats":{"total_commits":48,"total_committers":3,"mean_commits":16.0,"dds":"0.33333333333333337","last_synced_commit":"ddcfe53faf74f2f6045c8f1a567bcad1e4e16d63"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marusyk%2FSimple.HttpPatch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marusyk%2FSimple.HttpPatch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marusyk%2FSimple.HttpPatch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marusyk%2FSimple.HttpPatch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Marusyk","download_url":"https://codeload.github.com/Marusyk/Simple.HttpPatch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249191152,"owners_count":21227508,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hacktoberfest","http-patch","json","patch","rest","restful-api","webapi"],"created_at":"2024-10-01T16:44:44.203Z","updated_at":"2025-04-16T03:31:36.454Z","avatar_url":"https://github.com/Marusyk.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿\u003cp align=\"center\"\u003e\n  \u003cimg src=\"HttpPatch.png\" alt=\"HttpPatch\" width=\"250\"/\u003e\n\u003c/p\u003e\n\n[![AppVeyor](https://ci.appveyor.com/api/projects/status/8sq80lyqcatsnssy?svg=true)](https://ci.appveyor.com/project/Marusyk/simple-httppatch) [![GitHub (pre-)release](https://img.shields.io/github/release/Marusyk/Simple.HttpPatch/all.svg)](https://github.com/Marusyk/Simple.HttpPatch/releases/tag/v1.0.0-beta)  [![NuGet Pre Release](https://img.shields.io/nuget/vpre/Simple.HttpPatch.svg)](https://www.nuget.org/packages/Simple.HttpPatch) \n[![NuGet](https://img.shields.io/nuget/dt/Simple.HttpPatch.svg)]()\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE.md) ![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)\n\n# Simple.HttpPatch [![Stand With Ukraine](https://img.shields.io/badge/made_in-ukraine-ffd700.svg?labelColor=0057b7)](https://stand-with-ukraine.pp.ua)\n\nSimple.HttpPatch is implementation for .NET (Full framework and Core) to easily allow \u0026 apply partial RESTful service (through Web API) using [HTTP PATCH](https://tools.ietf.org/html/rfc5789) method.\n\n## Installation\n\nYou can install the latest version via [NuGet](https://www.nuget.org/packages/Simple.HttpPatch/).\n\n`PM\u003e Install-Package Simple.HttpPatch`\n\n## How to use\n\nSee [samples](https://github.com/Marusyk/Simple.HttpPatch/tree/master/samples/Simple.HttpPatch.Samples) folder to learn of to use this library with ASP.NET Core.\n\nPatch a single entity\n\n```C#\n[HttpPatch]\npublic Person Patch([FromBody] Patch\u003cPerson\u003e personPatch)\n{\n    var person = _repo.GetPersonById(1);\n    personPatch.Apply(person);\n    return person;\n}\n```\n\nTo exclude properties of an entity while applying the changes to the original entity use `PatchIgnoreAttribute`. \nWhen your property is a reference type (which allows null) but you don't want that null overwrites your previous stored data then use  `PatchIgnoreNullAttribute`\n\n```C#\npublic class Person\n{\n    public int Id { get; set; }\n    [PatchIgnore]\n    public string Name { get; set; }\n    public int? Age { get; set; }\n    [PatchIgnoreNull]\n    public DateTime BirthDate { get; set; }\n}\n```\n\n*Note: The property with name `Id` is excluded by default*\n\n For firewalls that don't support `PATCH` see [this issue](https://github.com/Marusyk/Simple.HttpPatch/issues/5)\n \n ## Contributing\n\nPlease read [CONTRIBUTING.md](https://github.com/Marusyk/Simple.HttpPatch/blob/master/CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE.md](https://github.com/Marusyk/Simple.HttpPatch/blob/master/LICENSE) file for details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarusyk%2Fsimple.httppatch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarusyk%2Fsimple.httppatch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarusyk%2Fsimple.httppatch/lists"}