Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

REST Data Source to Read Data From OIC

Renju JohnFeb 2 2025

Hi All,

I am trying to create a REST Data Source in Oracle Apex 24.1.7 to read the data from OIC API. In short, I want to return all the Integrations and the error and want to populate in One Apex Page. So, I created a confidential Application in the IDCS with Authorization as Client Credentials, Token Issuing policy to All and added all the available resources to the scope.

Now I am using the below ink to generate the token

https://idcs-xxxxxx.identity.oraclecloud.com:443/oauth2/v1/token

and

https://design.integration.xxxxxx.ocp.oraclecloud.com/ic/api/integration/v1/integrations

to read the API Data.

From the Postman & Curl command I am getting the Bearer Token Successfully. I configured the Rest Data Source as below.

Credential OIC Credential, I created in Oracle Apex Web Credentials. But when Click Test Operation, I am getting an error ‘Server Responded with HTTP 404: not found’ and Server Response is

{ "code" : "NotAuthorizedOrNotFound", "message" : "Fail to retrieve service instance metadata for service integration-prod-gen3 instanceId null" }

Can anybody face this issue or can anybody help me to resolve it.

Comments
Post Details
Added on Feb 2 2025
1 comment
80 views