Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Retrieves the list of countries with code and name. 

URL

(GET) /api/settings/countries/codes
(POST) /api/settings/countries/codes
 

...

The method has no parameters.

Use the POST variant for autofor Auto-completion and pagination features.


RESULTS

The result is a JSON array with one element per country:

vThe ISO 3 letter country code such as FRA, AUT, GERstring
tThe default title (typically in English unless changed by admin)string

 


EXAMPLES

List of countries with 3 letter code and name.

Code Block
 [
  {
    "v": "ABW",
    "t": "Aruba"
  },
  {
    "v": "AFG",
    "t": "Afghanistan"
  },
  ...
]

 

 

...