Get configuration
/apiplatform/developers/v1/customization/configuration
Returns the current custom Developer Portal configuration settings as JSON. Returns a 404 if no custom configuration exists.
All authenticated users can request this resource.
Request
- portalName
-
Type:
stringOptional portal name query parameter, for site-specific settings
Response
- application/json
object- _remove_
-
Type:
array_remove_Specifies entries to be removed from the default configuration. The entries must specify the path to the JSON property to be removed from the root down to the actual property. Separate property names with slashes. - branding
-
Type:
objectbrandingCompany and product names, logos, copyright, etc. - css
-
Type:
objectcssCollection of CSS rules. - language
-
Type:
stringThe default language of the Developer Portal. - layout
-
Type:
objectlayoutDeveloper Portal UI layout definitions. - modules
-
Type:
objectmodulesDeveloper Portal module configuration. - resources
-
Type:
stringThe path where the language resources are stored, relative to the root of the portal application. - services
-
Type:
objectservicesURLs of services used by the Developer Portal. - session
-
Type:
objectsessionSession management configuration.
array-
Type:
string
object- about
-
Type:
objectbranding_aboutAbout box branding configuration. - login
-
Type:
objectbranding_loginLogin screen branding properties. - logo
-
Type:
objectbranding_logoBranding bar logo properties. - product
-
Type:
stringThe branded name of the product. - product_short
-
Type:
stringThe short version of the product name for mobile devices. - title
-
Type:
stringThe product web page title. - vendor
-
Type:
stringThe name of the vendor.
object- <selector>
-
Type:
objectcss_propertiesCollection of CSS properties.
object- home
-
Type:
objectlayout_homeSpecifies the home module. - navigation
-
Type:
objectlayout_navigationControls how navigation works in the Developer Portal. - panels
-
Type:
objectlayout_panelsAssociates modules with elements (panels) in the page's HTML structure.
object- base
-
Type:
stringThe relative path to the module's base directory. - inventory
-
Type:
objectmodules_inventoryThe list of the modules configured in the system. - redirect
-
Type:
objectmodules_redirectCollection of module redirection definitions.
object- analytics
-
Type:
stringAnalytics REST services URL - console
-
Type:
stringDeveloper Portal console REST services URL. - manager
-
Type:
stringManagement REST services URL - portal
-
Type:
stringDeveloper Portal data back-end URL.
object- logout
-
Type:
stringURL navigated to when a user logs out. - timeout
-
Type:
stringURL navigated to when a session times out.
object- body
-
Type:
stringRequired:trueParagraphs to be displayed in the About box. - links
-
Type:
arraylinksList of the links in the About box footer.
object- background
-
Type:
objectbranding_login_backgroundBranded login screen background image configuration. - css
-
Type:
objectcssCollection of CSS rules. - logo
-
Type:
objectbranding_logoBranding bar logo properties. - productLogo
-
Type:
stringProduct logo image URL. - splash
-
Type:
stringSplash image URL (mobile devices only).
object- alignment
-
Type:
stringLogo image alignment CSS definition. - height
-
Type:
stringLogo image height CSS definition. - url
-
Type:
stringLogo image URL. - width
-
Type:
stringLogo image width CSS definition.
array-
Type:
objectbranding_about_linkDefinition links displayed in the About box.
object- text
-
Type:
stringThe link text. - url
-
Type:
stringThe link URL.
object- desktop
-
Type:
stringDesktop background image URL. - mobile
-
Type:
objectbranding_login_background_mobileBackground image configuration for mobile devices. - tablet
-
Type:
objectbranding_login_background_mobileBackground image configuration for mobile devices.
object- landscape
-
Type:
stringLandscape orientation background image URL. - portrait
-
Type:
stringPortrait orientation background image URL.
object- <css property name>
-
Type:
stringThis is a placeholder property that represents any CSS property. Any number of properties can be added to the collection. The property value must be a valid CSS value that corresponds the given property.
object- module
-
Type:
stringThe name of the Developer Portal's home module.
object- <panel_name>
-
Type:
objectlayout_panelSpecifies an association between a module and an HTML element.
object- module
-
Type:
stringThe name of the module.
The special value
${window.location.pathname}means that the panel specifies the main work area of the Developer Portal. The module the URL scheme of that matches the current URL will be loaded here. - selector
-
Type:
stringA JQuery selector that specifies the element the module will be inserted into.
object- <module_name>
-
Type:
objectmoduleThe definition of a single Developer Portal module.
object- <module_name>
-
Type:
stringThe module identified by the property name will be replaced by the module identified by the property value. Both names must exist in the module inventory. Any number of redirections can be specified.
object- data
-
Type:
objectmodule_dataModule data configuration. The layout of this object depends upon the module. The properties defined here are named by the module and apply to the data object itself. - documentationUrl
-
Type:
stringOptional URL that points to the context sensitive documentation of the module. If this is not specified, the URL is calculated from the root documentation URL using the page ID. - domain
-
Type:
stringThe domain identifies the functional area the module belongs to. This property is relevant only for modules that get loaded into the main work area of the application. The button that belongs to the matching functional area is highlighted in the navigation bar. - pageId
-
Type:
objectmodule_page_idThe context identifier of a module. - path
-
Type:
stringThe path the files of the module are loaded from. The path is relative to the base module path. For each module, there must be an.html, a.jsand a.cssfile in the specified directory; the names of files must match the module's name. - title
-
Type:
stringThe page title for the module. If this property is missing, the title defaults to the branded application title. - urlScheme
-
Type:
stringOne or more URLs relative to the application's context root that are be associated with the module. The property can either be a single URL or an array of URLs if the module is associated with more than one URL. The URL can reference path or query parameters between curly braces.
object- <api.details>
-
Type:
objectmodule_data_api_detailsData for the api.details module. - <application.analytics>
-
Type:
objectmodule_data_application_analyticsModule data for the application analytics module.
object- deep
-
Type:
objectmodule_page_id_deepCollection of page IDs of subpanels or tabs. - root
-
Type:
stringThe context identifier of the module itself. This is usually designated as the outer container of the page.
object- apiaryTheme
-
Type:
objectapiary_themeApiary theme properties. A complex object that specifies the theme properties to be used for embedded Apiary documentation. The theme properties structure is documented here: http://embed.apiary.io/api-reference.html.
object- ranges
-
Type:
objectanalytics_rangesAnalytics time range definitions. - refreshFrequency
-
Type:
integer(int32)Time interval between automatic refreshes of analytics data in seconds. The value0turns off automatic refresh.
objectobject- default
-
Type:
stringThe name of the default main analytics range. - main
-
Type:
objectanalytics_range_groupA group of analytics ranges. - other
-
Type:
objectanalytics_range_groupA group of analytics ranges.
object- <range_name>
-
Type:
objectanalytics_rangeAn analytics time range definition.
object- granularity
-
Type:
objectanalytics_range_granularityDefines the length of the time buckets analytics data is aggregated in. - order
-
Type:
integer(int32)The ordinal number of the range as it appears in the range group. - range
-
Type:
objectanalytics_range_intervalDefines the time interval for the range. - title
-
Type:
stringThe title of the range.
object- length
-
Type:
integer(int32)The length of the aggregation time buckets.
Valid values depend on the time bucket unit:
minute:
1,5,10,15,30hour:
1,2,3,4,6,12day:
1week:
1month:
1year:
1 - unit
-
Type:
stringThe unit of the aggregation time buckets.
Valid values:
minute,hour,day,week,month,year
object- from
-
Type:
stringSpecifies the beginning of the time range. - to
-
Type:
stringSpecifies the end of the time range.
object- <subpanel_name>
-
Type:
stringSpecifies a subpanel by name. The property value specifies the subpanel's page ID.
Examples
The following example shows how to retrieve the custom Oracle API Platform Cloud Service Developer Portal configuration file by submitting a GET request on the REST resource using cURL. For more information about cURL, see Use cURL
curl -i -X GET -u apicsadmin:password https://example.com/apiplatform/developers/v1/customization/configuration
Example of Response Headers
The following shows an example of the response headers.
HTTP/1.1 200 OK Server: Oracle-Traffic-Director/12.2.1.0.0 Date: Sun, 01 Jan 2017 16:13:46 GMT Content-length: 314 X-oracle-dms-ecid: 7Gs7D0PnR00000000 X-oracle-dms-rid: 0:1 Via: 1.1 otd_opc Proxy-agent: Oracle-Traffic-Director/12.2.1.0.0
Example of Response Body
The following example shows the contents of the response body in JSON format, including the custom configuration details.
{
"branding": {
"vendor": "${i18n.branding.vendor}",
"product": "${i18n.branding.product}",
"product_short": "${i18n.branding.product_short}",
"title": "${i18n.branding.title}",
"logo": {
"url": "http://example.com/assets/dev-portal-logo.png",
"width": "auto",
"height": "17px",
"alignment": "baseline"
}
}
}