Create New/Edit REST Data Source

Use the Create New REST Data Source wizard (or Edit REST Data Source wizard) to create (or edit) a REST data source for all portals (if accessed through the Shared Assets page) or for the current portal (if accessed through the Assets page). More

The Create New/Edit REST Data Source wizard includes the following pages:

Create or Edit

Use the Create or Edit page to add or modify a REST data source.

Element Description

Name

(Required) Enter a name for the new REST data source.

Description

Optionally, Enter a description for the new REST data source.

Resource Path

(Required) Enter a valid REST URL resource path. For example, the resource path http://dev.markitondemand.com/Api/v2/Quote?symbol=AAPL provides stock quotes.

The resource path must support at least the GET method, along with any other method (PUT, POST, DELETE).

Test

Click to confirm the resource path is valid and that it returns data.

Use Portal Proxy

Select if you specified an external URL.

Use Authentication

Select to use Authentication. If selected, also select the authentication type (for example, Basic)

Refresh Schema

(Shown only when editing an existing REST data source) Select to update the data source and associated business object with changes to the database schema, such as adding, deleting, or renaming attributes. For more significant structural changes, you will need to re-create the data source, and any data visualizations where it is used.

Enable Caching

Select to enable caching.

Time to Live (ms)

Enter a value in milliseconds.

Max Weight

Enter the maximum weight.

Methods

Select the REST data source method to be used to retrieve data.

Data Source Return Type

Select a data source return type that specifies data type returned by the Resource Path URL. A URL can return data in either XML format or JSON format.

Parameters

The parameters are populated based on the resource path provided.

Click icons to remove Remove icon selected or add Add icon new parameters.

Request Payload

Enter a request payload

Response Payload

Enter a response payload.

Authentication

Use the Authentication page to define the authentication type (for example, Basic Authentication). This page displays when Use Authentication is selected on the Create page.

Element Description

Filter Credentials

Enter the filter criteria and click the Search Search icon icon.

Click Clear Search icon to clear the search field.

Add Credentials

Click to display the Credentials page.

Authentication Credentials List

Click to select an existing authentication credentials (Basic, OAuth, Taleo).

Credentials

Use the Credentials page to define the data source security type and define or edit the login information. This page is displayed when Add Credentials is selected on the Authentication page.

Element Description

Select Security Type

Select security type of Basic Authentication, OAuth, or Taleo Token Generator, and enter corresponding settings. More

Name

(Required) Enter a name for the new credential.

Related Topics

"Creating, Editing, and Managing Assets" in Building Portals with Oracle WebCenter Portal

"Working with Shared Assets" in Building Portals with Oracle WebCenter Portal