Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Current »

Operation

This operation allow you to get a list of all the countries available in the system.

GET
https://{environment}.ulysescloud.com/public/api/{version}/country


Request

This request has no parameters.

Example request

GET https://publicapi-providers.ulysescloud.com:9797/public/api/v1/country


Response

Array of Country elements.

Entity


FieldTypeRequiredDescription
idIntegertrueUnique identificator of the Country.
codestringtrueCode ISO Alfa 3.
codeISOAlfa2stringfalseCode ISO Alfa 2.
namestringtrueOfficial ISO name of the Country

Example response

[
  {
    "id": 1,
    "code": "AFG",
    "name": "AFGHANISTAN"
  },
  {
    "id": 2,
    "code": "ALB",
    "name": "ALBANIA"
  },
  {
    "id": 3,
    "code": "DZA",
    "name": "ALGERIA"
  },
  {
    "id": 4,
    "code": "ASM",
    "name": "AMERICAN SAMOA"
  },
  {
    "id": 5,
    "code": "AND",
    "name": "ANDORRA"
  }
]
  • No labels