listCountries

get

/ccstore/v1/countries

List Countries. List all the configured countries. Optionally takes the x-ccasset-language header to get translated content in another language.

Request

Supported Media Types
  • application/json
Header Parameters
X-CCAsset-Language
Type: string
The asset language of the request

Response

Supported Media Types
  • application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : listCountries_response
Nested Schema : items
Type: array
The list of all countries.
Nested Schema : items
Type: object
Example application/json

[
    {
        "displayName":"Canada",
        "countryCode":"CA",
        "repositoryId":"CA"
    },
    {
        "displayName":"United States",
        "countryCode":"US",
        "repositoryId":"US"
    }
]
Default Response
The error response
Body
Root Schema : errorModel
Type: object
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Nested Schema : items
Type: object

Examples

Sample Response Payload returned by endpoint:

[
  {
    "displayName": "Canada",
    "countryCode": "CA",
    "repositoryId": "CA"
  },
  {
    "displayName": "United States",
    "countryCode": "US",
    "repositoryId": "US"
  }
]