List of Languages

get

/appstore/publisher/v1/languages

Get a list of all languages. Publishers can associate a set of languages as supported languages for their Application listing. This is to help customers find applications that work in a language of their choice.

Request

Query Parameters
  • Limit tells how many records to return (starting from the offset). Limit should be greater than zero and less than or equal to 100 (default=30).
  • Offset and limit together determine how many records to return from the collection. Offset is the starting index of the records to return, which should be greater than or equal to zero (default=0).
Back to Top

Response

Supported Media Types

200 Response

Successful Operation
Body ()
Root Schema : collection
Type: object
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : Item
Type: object
Show Source

400 Response

Invalid Parameter Value/Invalid Parameter

404 Response

Entity Not Found

500 Response

System Error
Back to Top

Examples

The following example return a list of all the supported languages, by submitting a GET request on the REST resource using cURL.

cURL Example

curl -X GET -H "Authorization: Bearer Access-token" "https://ocm-apis.cloud.oracle.com/appstore/publisher/v1/languages?limit=2&offset=3"

Request Header

Authorization: Bearer Access-token

Request Body

None

HTTP Status Code:

200 OK

JSON Response:

{
  "items": [
    {
      "code": "fi_FI",
      "name": "Finnish"
    },
    {
      "code": "fr_FR",
      "name": "French"
    }
  ],
  "hasMore": true,
  "count": 2,
  "totalResults": 32,
  "links": [
    {
      "rel": "CANONICAL",
      "href": "https://ocm-apis.cloud.oracle.com/appstore/publisher/v1/languages"
    },
    {
      "rel": "SELF",
      "href": "https://ocm-apis.cloud.oracle.com/appstore/publisher/v1/languages?limit=2&offset=3"
    },
    {
      "rel": "NEXT",
      "href": "https://ocm-apis.cloud.oracle.com/appstore/publisher/v1/languages?offset=5&limit=2"
    },
    {
      "rel": "PREV",
      "href": "https://ocm-apis.cloud.oracle.com/appstore/publisher/v1/languages?offset=1&limit=2"
    }
  ]
}
Back to Top