Get language resource
/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
-
languageCode: string
Language code, like
en-us
.
-
portalName(optional): string
Optional portal name query parameter, for site-specific settings
Response
- application/json
200 Response
"language_code":{"id":"translated_text"}
.object
"language_code":{"id":"translated_text"}
.404 Response
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" } } } }