OCI API Gateway for REST & SOAP Integrations

Santhosh Kumar BVSRK
4 min readJan 31, 2022

--

In this post, we will be touching up on a high-level as to what is OCI API Gateway and then in depth as to how you can use OCI API Gateway as front-end for your OIC Integrations.

What is API Gateway ?

In simple terms, API Gateway acts as a frontend to your applications so that your application endpoint can be hidden, as clients/third-party will be hitting on your API Gateway endpoint rather than your application.

Apart from this there are lot of other features in OCI API Gateway viz.,

  1. Payload Transformation
  2. Dynamic Routing
  3. Header & Query String Validation
  4. Rate Limiting
  5. Request/Response transformation
  6. Response Caching
  7. Public or Private Endpoints
  8. Creating your Open API-Loading into API Gateway and deploying it.
  9. Custom Authorization
  10. Connecting logs with OCI Logging Analytics

Deploying OIC Integrations on to OCI API Gateway

I) OIC REST Integrations on to OCI API Gateway

Before starting to deploy your OIC REST Integration on to API Gateway, you need to configure API Gateway in OIC.

For this, login to OIC console → Settings → Integrations → API Management. In here, you have to choose API Gateway (radio button) and populate data in the fields

a. Tenancy OCID (which is the OCID of your tenancy)

b. User OCID (which is OCID of the user with which you have logged into OCI Console)

c. Finger Print (which need to be generated in OCI Console → Identity & Security → Users → User Details (of your user) → API Keys → Add API Key)

d. Private Key

e. Pass Phrase (this is optional)

Configuring API Gateway in OIC

Once you populate these details and save a connection is established from OIC to OCI Gateway.

From now-on whenever you try activating an integration you’ll get an option “Activate & Deploy” which activates the integration. Along with this a window will pop-up asking you to choose the compartment on which your API Gateway is deployed along with choosing your API Gateway.

Choosing API Gateway for Integration Deployment

This deploys your OIC REST Integration on to selected OCI API Gateway.

The other way to deploy your already activated integrations on to OCI API Gateway is by choosing API Management from the hamburger menu against your already Activated Integration and choosing Compartment, API Gateway.

Deploying an Active Integration on to OCI API Gateway

II) OIC SOAP Integrations on to OCI API Gateway

OCI API Gateway does support SOAP Integrations as well, but only as pass through. For SOAP Integrations OCI API Gateway you will not be able to avail the options like Transformations, Validations, etc.

For SOAP Integrations, we can create a deployment on OCI API Gateway manually. In the Routes of OCI API Gateway Deployment you need to choose Method → POST, Type → HTTP and in the backend URL you’ll have to provide the endpoint of your SOAP Integration rather than the WSDL and save changes.

OCI API Gateway Route for OIC SOAP Integration

For testing the SOAP deployments from Postman you’ll be adding Route Path to the API Gateway Deployment endpoint. Along with this you need to pass your OIC Credentials and payload in Body as raw XML and test it.

Invoking OIC SOAP Integration from OCI API Gateway

Postman testing procedure remains the same for REST Integrations as well, except populating data for Body. For REST Integrations we’ll be passing credentials under Authorization and query parameters under Params

Invoking OIC REST Integration from OCI API Gateway

NOTE: You can learn more about OCI API Gateway here

--

--

Santhosh Kumar BVSRK
Santhosh Kumar BVSRK

Written by Santhosh Kumar BVSRK

17+ Years in IT/ITES| ML & AI Enthusiast| Oracle Cloud Architect, Integration Specialist — BPEL, OSB, OIC, IICS| Database Scripting-SQL, PL/SQL, MySQL

Responses (1)