-
Notifications
You must be signed in to change notification settings - Fork 4
/
952.txt
42 lines (29 loc) · 1.82 KB
/
952.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
[2] [DFN[[[JSON Patch]]]] は、 [[JSON]] [[文書]]の[[差分]]を [[JSON]] として記述する[[文書形式]]です。
* 仕様書
[REFS[
- [1] [CITE@en[RFC 6902 - JavaScript Object Notation (JSON) Patch]] ([TIME[2013-08-08 12:35:00 +09:00]] 版) <http://tools.ietf.org/html/rfc6902>
]REFS]
* MIME 型
[4] [[MIME型]]としては [DFN[[CODE(MIME)@en[[[application/json-patch+json]]]]]]
が規定されています。[[引数]]はありません。 [SRC[>>1]]
* 応用
[3] [[RFC]] では主に [[HTTP]] [CODE(HTTP)@en[[[PATCH]]]] [[メソッド]]で利用することが想定されている [SRC[>>1]]
ようです。
* 関連
[5] [[JSON Patch]] では[[差分]]の適用位置を指定するために [[JSON Pointer]] が使われています。
[6] [CITE[The diffing side of JSON Patch - Google グループ]]
( ([TIME[2013-12-12 02:28:01 +09:00]] 版))
<https://groups.google.com/forum/#!topic/json-patch/UcKvMjukhmk>
[7] [[JSON Merge Patch]] というものもあります。両者に互換性はありません。
[FIG(quote)[
[FIGCAPTION[
[8] [CITE[Image API v2 HTTP PATCH media types — Glance Specs 0.0.1.dev157 documentation]]
([TIME[2016-03-11 02:50:48 +09:00]] 版)
<https://specs.openstack.org/openstack/glance-specs/specs/api/v2/http-patch-image-api-v2.html>
]FIGCAPTION]
> 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.
]FIG]