-
Notifications
You must be signed in to change notification settings - Fork 4
/
194.txt
34 lines (24 loc) · 1.79 KB
/
194.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
[1] [DFN[Web API]] は [[Web]] に関係する [[API]] で、よく使われている用法としては2つの意味があります。
* Web プロトコルによって提供される API
[2] [[Webサービス]]などの機能を主に [[JSON]]、[[XML]] などを情報交換形式として使いつつ [[API]]
の形で提供されるものを [DFN[Web API]] といいます。[[Webサービス]]、[[Webアプリケーション]]などの類義語ですが、
人間の[[利用者]]よりも[[プログラム]]からのアクセスが主な目的である点で異なっています。
[3] 人間の[[利用者]]が使う[[Webブラウザ]]上で動作する [[JavaScript]]
から呼び出すことを目的としたもの、それ以外の任意の[[プログラム]]から呼び出すことを目的としたもの、
その両方を目的としたものがあります。
[FIG(list)[
- [[Web APIの悪い設計]]
]FIG]
* Web ブラウザによって提供される API
[4] [[Webブラウザ]]によって[[文書]]に (主に [[JavaScript]] に) 提供される [[API]]
を [DFN[Web API]] といいます。[[DOM]] も似た意味ですが、本来の [[DOM]]
は単に[[文書]]にアクセスする [[API]] を指すのに対し、[[Web API]] はそれ以外の [[API]]
も含めたより広範な意味となっています。
[[Web API]] の方が [[DOM]] より新しい呼び方として好まれることもあります。
[5] かつては [[W3C]] に [[Web API WG]] がありましたが、[[WebApps WG]] に発展的に改組されています。
[6] [CITE@en[WebAPI - MozillaWiki]]
( ([TIME[2012-07-30 20:48:00 +09:00]] 版))
<https://wiki.mozilla.org/WebAPI>
[7] [CITE@en[API Design Principles]]
([TIME[2015-11-14 00:42:49 +09:00]] 版)
<https://w3ctag.github.io/design-principles/>