-
Notifications
You must be signed in to change notification settings - Fork 11
API plane
Manuel Strehl edited this page Aug 2, 2013
·
4 revisions
Template for this request:
http://codepoints.net/api/v1/plane/{plane}{?callback}
where {plane}
is the case-insensitive name of a Unicode plane. Spaces and
underscores can be used as liked. That means, Basic%20Multilingual%20Plane
,
BasicMultilingualPlane
and Basic_Multilingual_Plane
will all give the same
result.
{?callback}
is an optional callback function name to perform a JSON-P
request.
A response looks like this:
{
"name": "Basic Latin",
"first": "U+0000",
"last": "U+007F",
"blocks": [
"Basic Latin",
"Latin-1 Supplement",
"Latin Extended-A",
...
],
"next_plane": "Supplementary Multilingual Plane"
}
A successful response will contain two to three Link
headers:
-
rel=alternate
links to the description page of the plane on the main site. -
rel=prev
links to the previous plane, if it exists. -
rel=next
links to the next plane, if it exists.
- 404 Not Found: If the value for
{plane}
is no recognized Unicode plane.