Providing ISO 3166 as a micro-service using lumen

ISO 3166 is a standard published by the International Organization for Standardization (ISO) that defines codes for the names of countries, dependent territories, special areas of geographical interest, and their principal subdivisions (e.g., provinces or states). The official name of the standard is Codes for the representation of names of countries and their subdivisions.

You can use this standard through the REST API at http://iso3166.devcoons.com.

How to use: All the following are GET requests which can be done using the Postman or any other software of your preference.

// Get all continents
http://iso3166.devcoons.com/continent

// Get the countries of the continent X (continent code)
http://iso3166.devcoons.com/continent/X/countries
(ex. http://iso3166.devcoons.com/continent/EU/countries)

// Get the subdivisions of the country X (country code)
http://iso3166.devcoons.com/country/X/subdivisions
(ex. http://iso3166.devcoons.com/country/GRC/subdivisions)

If you need the source code to create your own ISO3166 micro-service please contact us.

Add comment

Categories

Tags