Create REST Enabled SQL service references on the REST Enabled SQL page.
Before creating a REST enabled SQL reference, developers must complete the requirements described in "Before You Begin: REST Enabled SQL Service Requirements".
To create a REST Enabled SQL service reference:
- Navigate to the REST Enabled SQL page:
- On the Workspace home page, click App Builder.
- Select a existing application.
- On the Application home page, click Shared Components in the center of the page.
- Under Data Sources, select REST Enabled SQL.
Tip:You can also access the REST Enabled SQL page from Workspace Utilities. From the App Builder home page, before selecting an application, click Workspace Utilities and then REST Enabled SQL Services.
- On the REST Enabled SQL page, click Create.
- On General, specify:
- Name - Enter a descriptive name for this REST Enabled SQL service.
- Endpoint URL - Enter the base URL for this REST Enabled SQL service.
The URL must be in the format
http://host:port/ords/schema. You obtain the URL by enabling the target schema on the remote database to be accessed by running
ORDS.ENABLE_SCHEMA. To learn more, see "Before You Begin: REST Enabled SQL Service Requirements."
- Click Next.
- For Authentication, specify the appropriate credentials:
- Credentials - Select an existing credential to authenticate against, or select Enter new and complete the remaining steps.
- Credential Name - Enter a descriptive name for the credentials.
- Authentication Type - Specify the Authentication type. Select either Basic Authentication or OAuth2 Client.
- Client ID:
For Basic Authentication, enter the database user name. User names for Basic Authentication are converted to upper case. To include a case-sensitive user name, prefix it with the exclamation mark (
For OAuth2, enter the client ID. This information will not be encrypted.
- Client Secret - Enter the password, or OAuth2 Client Secret. This information is stored encrypted and cannot be retrieved in clear text.
- Verify Client Secret - Enter the password or client secret again to verify your input. When the two values are not identical, an error message displays.
- Click Create.
Oracle Application Express tests the REST Enabled SQL service. If everything has been done correctly (that is, you have included the correct URL, schema name, and password), the Test REST Enabled SQL Service message appears as shown in the following illustration.
Description of the illustration test_rest_enabled_ref1.png
- Click Close.