Use REST Adapter With Multiple Resources & Verbs In Oracle Integration Cloud (OIC)

Oracle

Share Post Now :

HOW TO GET HIGH PAYING JOBS IN AWS CLOUD

Even as a beginner with NO Experience Coding Language

Explore Free course Now

Table of Contents

Loading

In this blog, I am going to show how to use REST Adapter with Multiple resources and verbs support in Oracle Integration Cloud(OIC).

Oracle recently added this feature allows us to create only one Integration for Multiple REST API with different verbs.

OIC REST Adapter Multiple resources and verbs support

REST (Representational State Transfer)

This was designed specifically for working with components such as media components, files, or even objects on a particular hardware device. Any web service that is defined on the principles of REST can be called a RestFul web service. A Restful service would use the normal HTTP verbs of GET, POST, PUT and DELETE for working with the required components.

Read More About New Homepage Of Oracle Integration Cloud.

Let’s Dive Into Integration & See How Can We Achieve This

  1. Create an App Driven Orchestration integration.
  2. Drop the REST connection as a trigger point, provide information as below and click the checkbox
    • What do you want to call your endpoint?
    • Enable multiple resources or verb checkbox
  3. Enter the below information and click Next.
    • Name of the endpoint. (In our case we have named it EmployeeDetails)
    • Select checkbox for configuring multiple resources or verb
      Configuring REST Endpoint
  4. Enter below information and Click
    1. Provide an operation Name (In our case it is InsertData)
    2. What does this operation do? (Provide a description)
    3. Relative URI(must start with /). (In our case it is /insert)
    4. What action do you want to perform on the endpoint: POST
    5. Configure a request payload for this endpoint: Select this checkbox (This option allows us to assign payload in the next step).
    6. Configure this endpoint to receive the response: Select this checkbox
      Configuring REST Endpoint
  5. Select the request payload format to choose JSON Sample: This option allows us to take input in JSON format. Select <<<inline>>> link to give sample payload.
    Configuring REST Endpoint
  6. Enter payload and click OK.{
    
    

    “Users”:[{

    
    

    “id”:””,

    
    

    “FIRSTNAME”:””,

    
    

    “LASTNAME”:””,

    
    

    “DESIGNATION”:””,

    
    

    “QUALIFICATION”:””

    
    

    },{

    
    

    “id”:””,

    
    

    “FIRSTNAME”:””,

    
    

    “LASTNAME”:””,

    
    

    “DESIGNATION”:””,

    
    

    “QUALIFICATION”:””

    
    

    } ] }Configuring REST Endpoint

  7. Click Next.
    OIC Rest multi verb resource
  8. Select the request payload format to choose JSON Sample: This option allows us to take input in JSON format. Select the inline link to give sample payload.
    OIC Rest multi verb resource
  9. Enter payload and click OK.
    {
    "status":""
    }

    Configuring REST Endpoint

  10. Click Next.
    Configuring REST Endpoint
  11. Now the Operation InsertData has been added.
    Configuring REST Endpoint
  12. Check the checkbox and click on Next for Add another operation.
    OIC Rest multi verb resource
  13. Enter below information and Click
    1. Provide an operation Name (In our case it is GetUsers)
    2. What does this operation do? (Provide a description)
    3. Relative URI(must start with /). (In our case it is /get users)
    4. Relative URI(must start with /). (In our case it is /users)
    5. What action do you want to perform on the endpoint: GET
    6. Configure this endpoint to receive the response: Select this checkbox

    OIC Rest multi verb resource

  14. Select Json Sample in the request payload format dropdown. This option allows us to take input in JSON Select <<< inline >>> link to give sample payload.
    OIC Rest multi verb resource
  15. Enter payload and click OK.{
     
    

    “Users”:[{

     
    

    “id”:””,

     
    

    “FIRSTNAME”:””,

     
    

    “LASTNAME”:””,

     
    

    “DESIGNATION”:””,

     
    

    “QUALIFICATION”:””

     
    

    },{

     
    

    “id”:””,

     
    

    “FIRSTNAME”:””,

     
    

    “LASTNAME”:””,

     
    

    “DESIGNATION”:””,

     
    

    “QUALIFICATION”:””

     
    

    } ] }OIC Rest multi verb resource

  16. Click Next.
    OIC Rest multi verb resource
  17. Now the Operation GetUsers has been added
    OIC Rest multi verb resource
  18. Check the checkbox for Add another operation
    OIC Rest multi verb resource
  19. Click on the Next button.
    OIC Rest multi verb resource
  20. Now your integration will look like this both the operations are branched from REST trigger EmployeeDetails
    App Driven Orchestration

This now you can utilize the REST adapters Multiple resources and verbs support in Oracle Integration Cloud(OIC)

Note: If you want to enhance your knowledge and become a certified Oracle Cloud Platform Application Integration 2021 Associate then check on the blog on certification exam [1Z0-1042].

To Know More About B2B in OIC

Summary

This new feature of REST Adapter with Multiple resources and verbs support is very useful when multiple operations on the database are to be performed using the same REST connection. It allows for creating one integration for the operations instead of creating separate integration for all. Reduces clutter when monitoring integrations and reduces the time needed to create the integration.

Related/References:

Next Task For You

Do you want to learn more about Oracle and confuse where to start or which certification is right for you? Then, click on the register now button below to register for a Free Masterclass on Oracle [1Z0-1042] Certified Cloud Integration Expertwhich will help you better understand and choose the right path and clear the certification exam.

OIC freeclass

Picture of mike

mike

I started my IT career in 2000 as an Oracle DBA/Apps DBA. The first few years were tough (<$100/month), with very little growth. In 2004, I moved to the UK. After working really hard, I landed a job that paid me £2700 per month. In February 2005, I saw a job that was £450 per day, which was nearly 4 times of my then salary.