Endeve - Developers Area

Regions

In endeve, countries and regions are standardized. This method enables you to access all information about regions.

SHOW

GET /regions/#{id}.xml

Returns a region.

RESPONSE

<region>
<country-id type=“integer”>65</country-id>
<id type=“integer”>271</id>
<name>Las Palmas</name>
</region>

LIST

GET /regions.xml

Returns a collection of regions.

RESPONSE

<regions>
<region>

</region>

<region>

</regions>
</regions>

If you want to see the regions of a country, you have to set the country_id parameter to the corresponding ID.