JSON Patch

JSON Patch

[2] JSON Patch は、 JSON 文書差分JSON として記述する文書形式です。

仕様書

MIME 型

[4] MIME型としては application/json-patch+json が規定されています。引数はありません。 >>1

応用

[3] RFC では主に HTTP PATCH メソッドで利用することが想定されている >>1 ようです。

関連

[5] JSON Patch では差分の適用位置を指定するために JSON Pointer が使われています。

[6] The diffing side of JSON Patch - Google グループ ( ( 版)) <https://groups.google.com/forum/#!topic/json-patch/UcKvMjukhmk>

[7] JSON Merge Patch というものもあります。両者に互換性はありません。

[8] Image API v2 HTTP PATCH media types — Glance Specs 0.0.1.dev157 documentation ( 版) <https://specs.openstack.org/openstack/glance-specs/specs/api/v2/http-patch-image-api-v2.html>

For image resources, two media types are supported:

application/openstack-images-v2.1-json-patch

application/openstack-images-v2.0-json-patch

The application/openstack-images-v2.1-json-patch media type is intended to provide a useful and compatible subset of the functionality defined in JavaScript Object Notation (JSON) Patch RFC6902, which defines the application/json-patch+json media type.

The application/openstack-images-v2.0-json-patch media type is based on draft 4 of the standard. Its use is deprecated.

[9] JSON API — JSON Patch Extension ( 版) <http://jsonapi.org/extensions/jsonpatch/>

The "JSON Patch extension" is an official extension of the JSON API specification. It provides support for modification of resources with the HTTP PATCH method [RFC5789] and the JSON Patch format [RFC6902].

[10] Buckets — Kinto 8.1.5 documentation () <https://kinto.readthedocs.io/en/latest/api/1.x/buckets.html>

It’s possible to use JSON-Patch by sending the request header Content-Type: application/json-patch+json.