JIRA story: http://jira.ez.no/browse/EZP-22217
Implement a REST service that gives access to an ISO-3166 formatted list of world countries.
- presenting a country options list from any application that uses the REST API
Resource: /api/ezp/v2/services/countries Method: GET Content-Type: application/vnd.ez.api.CountriesList+xml
GET /api/ezp/v2/services/countries
Host: example.com
Accept: application/vnd.ez.api.CountriesList+xml
HTTP/1.1 200
Content-Type: application/vnd.ez.api.CountriesList+xml
<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>
TTL cache would be sufficient here, as this resource's output isn't meant to change.
Would have said none, but there is a risk that this resource is used by anybody to get a free list of countries, as a web service, using bandwidth and processing power