<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="2" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[2]</anchor-end> <dfn><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">JSON API</anchor></dfn> は、 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">JSON</anchor> を用いた <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Web API</anchor> のデータ形式の1つです。
<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">MIME型</anchor>は <dfn><code class="MIME" xml:lang="en"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">application/vnd.api+json</anchor></code></dfn> とされています。</p><comment-p xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:10:"><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="3" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[3]</anchor-end> 大変紛らわしいことに、一般的に「<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">JSON API</anchor>」といえば <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">JSON</anchor> をデータ形式として使う任意の
<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">API</anchor> のことを指していますが、ここでいう「JSON API」は<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">固有名詞</anchor>です。
一般的な「<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">JSON API</anchor>」のほとんどは、ここでいう「JSON API」ではありません。
(悪意すら感じるネーミングですね。)</comment-p><refs xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:"><ul xmlns="http://www.w3.org/1999/xhtml"><li><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="1" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[1]</anchor-end> <cite>JSON API :: A standard for building APIs in JSON.</cite>
( (<time>2014-06-09 16:18:31 +09:00</time> 版))
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="http://jsonapi.org/">http://jsonapi.org/</anchor-external></li></ul></refs><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="4" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[4]</anchor-end> <cite>JSON API — Latest Specification (v1.0)</cite>
(<time>2015-11-16 23:46:06 +09:00</time> 版)
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="http://jsonapi.org/format/">http://jsonapi.org/format/</anchor-external></p><figure class="quote"><figcaption><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="5" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[5]</anchor-end> <cite>JSON API — JSON Patch Extension</cite>
(<time>2016-03-20 23:22:07 +09:00</time> 版)
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="http://jsonapi.org/extensions/jsonpatch/">http://jsonapi.org/extensions/jsonpatch/</anchor-external></figcaption><blockquote><p>Content-Type: application/vnd.api+json; ext=jsonpatch</p><p>Accept: application/vnd.api+json; ext=jsonpatch</p></blockquote></figure><figure class="quote"><figcaption><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="6" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[6]</anchor-end> (<time>2013-07-22 15:39:05 +09:00</time> 版)
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="https://www.iana.org/assignments/media-types/application/vnd.api+json">https://www.iana.org/assignments/media-types/application/vnd.api+json</anchor-external></figcaption><blockquote><p>Required parameters : none</p><p>Optional parameters :</p><p>none</p></blockquote></figure><figure class="quote"><figcaption><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="7" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[7]</anchor-end> <cite>JSON API — JSON Patch Extension</cite>
(<time>2016-03-20 23:22:07 +09:00</time> 版)
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="http://jsonapi.org/extensions/jsonpatch/">http://jsonapi.org/extensions/jsonpatch/</anchor-external></figcaption><blockquote><p>The server MUST specify a Content-Type header of application/vnd.api+json; ext=jsonpatch.</p></blockquote></figure><figure class="quote"><figcaption><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="8" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[8]</anchor-end> <cite>JSON API — Latest Specification (v1.0)</cite>
(<time>2016-03-20 23:22:07 +09:00</time> 版)
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="http://jsonapi.org/format/#content-negotiation-clients">http://jsonapi.org/format/#content-negotiation-clients</anchor-external></figcaption><blockquote><p>Client Responsibilities</p><p>Clients MUST send all JSON API data in request documents with the header Content-Type: application/vnd.api+json without any media type parameters.</p><p>Clients that include the JSON API media type in their Accept header MUST specify the media type there at least once without any media type parameters.</p><p>Clients MUST ignore any parameters for the application/vnd.api+json media type received in the Content-Type header of response documents.</p><p>Server Responsibilities</p><p>Servers MUST send all JSON API data in response documents with the header Content-Type: application/vnd.api+json without any media type parameters.</p><p>Servers MUST respond with a 415 Unsupported Media Type status code if a request specifies the header Content-Type: application/vnd.api+json with any media type parameters.</p><p>Servers MUST respond with a 406 Not Acceptable status code if a request's Accept header contains the JSON API media type and all instances of that media type are modified with media type parameters.</p><p>Note: The content negotiation requirements exist to allow future versions of this specification to use media type parameters for extension negotiation and versioning.</p></blockquote></figure><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="9" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[9]</anchor-end> 
その後 <dfn>JSON:API</dfn> って書くようになったみたいですね。 (わかりにくいことはかわってないが。)</p></body></html>