REST API Countries list: comparison of v.1 vs v.2
Versions Compared
Old Version 1
changes.mady.by.user Sarah Haïm-Lubczanski
Saved on Mar 12, 2014
compared with
New Version Current
changes.mady.by.user Dominika Kurek
Saved on Feb 02, 2016
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Countries list is a REST service that gives access to an ISO-3166 formatted list of world countries. It is useful to present when presenting a country options list from any application.
...
To send a GET request to the REST API Countries list, you have to provide the content-type Content Type header application/vnd.ez.api.CountriesList+xml.
Note that cache request headers can be added but those aren't fully implemented yet in Exponential 5.0.
...
And the body of the Response is XML formatted countrly country list with name names and codes according to the ISO-3166 standard.
| Info | ||
|---|---|---|
|
||
| The country codes can be represented either as a two-letter code (alpha-2) which is recommended as the general purpose code, a three-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. |
See the ISO-3166 glossary for more information.
| Code Block | ||||
|---|---|---|---|---|
|
||||
<CountriesList>
<Country id="AF">
<name>Afghanistan</name
<alpha2>AF</alpha2>
<alpha3>AFG</alpha3>
<idc>93</idc>
</Country>
<Country id="AX">
<name>Åland</name
<alpha2>AX</alpha2>
<alpha3>ALA</alpha3>
<idc>358</idc>
</Country>
...
</CountriesList>
|
...
Comments
Add a comment