Get language resource

get

/developers/services/v1/portal/customization/languages/{languageCode}

Returns the custom Developer Portal language resource that has been submitted for the {languageCode} language as JSON. Returns a 404 if no custom language resources for the language code exist.

This is a public resource; it does not require authentication and can be accessed by any user.

Request

Path Parameters
Query Parameters
Back to Top

Response

Supported Media Types

200 Response

JSON language resource structure.
Body ()
This is the JSON decription of language resources, in form of "language_code":{"id":"translated_text"}.
Root Schema : resources
Type: object
This is the JSON decription of language resources, in form of "language_code":{"id":"translated_text"}.

404 Response

No language resource found.
Back to Top

Examples

The following example shows how to retrieve custom language resources for the Oracle API Platform Cloud Service - Classic Developer Portal by submitting a GET request on the REST resource using cURL. For more information about cURL, see Use cURL

curl -i -X GET 
https://example.com/developers/services/v1/portal/customization/language/en-us

Example of Response Headers

The following shows an example of the response headers.

HTTP/1.1 200 OK
Server: Oracle Traffic Director
Date: Sun, 01 Jan 2017 16:58:46 GMT
Content-length: 125
X-ORACLE-DMS-ECID: 7Gs7D0PnR00000000
X-ORACLE-DMS-RID: 0:1

Example of Response Body

The following example shows the contents of the response body in JSON format, including custom language resources for the specified language.

{
  "oap": {
    "navbar": {
      "buttons": {
        "apicatalog": "APIs",
        "appcatalog": "My Applications",
        "help": "Documentation",
        "user": "User Menu"
      }
    }
  }
}
Back to Top