Message-ID: <1435072991.3750.1485855154996.JavaMail.confluence@ip-10-127-227-164> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_3749_229959743.1485855154996" ------=_Part_3749_229959743.1485855154996 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
Countries list is a REST service that gives access to an ISO-3166 formatted list of world countries. It is useful when presenti= ng a country options list from any application.
To send a GET request to the REST API Countries list, you have to provid=
e the Content Type header application/vnd.ez.api.CountriesList+xml.
Resource: /api/ezp/v2/services/countries Method: GET Content-Type: application/vnd.ez.api.CountriesList+xml=20
See the General REST u= sage documentation page for further information.
GET /api/ezp/v2/services/countries=20 Host: example.com=20 Accept: application/vnd.ez.api.CountriesList+xml=20
The HTTP response will it be with a 200 OK Header.
HTTP/1.1 200=20 Content-Type: application/vnd.ez.api.CountriesList+xml=20
And the body of the Response is XML formatted country list with names an= d codes according to the ISO-3166 standard.
ISO-3166
The country codes can be represented either as a two-le= tter code (alpha-2) which is recommended as the general purpose code, a thr= ee-letter code (alpha-3) which is more closely related to the country name = and a three digit numeric code (numeric-3) which can be useful if you need = to avoid using Latin script.
<CountriesList> <Country id=3D"AF"> <name>Afghanistan</name <alpha2>AF</alpha2> <alpha3>AFG</alpha3> <idc>93</idc> </Country> <Country id=3D"AX"> <name>=C3=85land</name <alpha2>AX</alpha2> <alpha3>ALA</alpha3> <idc>358</idc> </Country> ... </CountriesList>=20