Overview 

DBSync Swagger 2.0/ OpenAPI 3.0  or OpenAPI adapter facilitates the user to use any homegrown applications and integrate it with other applications by enabling the Swagger API on their systems.

It is a collaboration platform where you can automatically connect SaaS applications using API with the help of DBSync Cloud Workflow.

Problem Statement

Organizations using varied applications might find it challenging to integrate with other applications to extract, transform and load data across applications. DBSync Swagger / OpenAPI3.0 adapter addresses this issue and enables the user to connect or integrate various applications supporting Swagger API.

We will be using Swagger Demo from https://petstore.swagger.io and use it to show how to integrate it using CloudWorkflow

Quick Review of PetStore API

Let us use an example of Petstore Swagger to understand the functionality of DBSync Swagger API adapter:

Setting up Swagger API  DBSync 

                                                          Fig: Connector section

                                                                Fig: Connector settings 

Note: The Username, Password  are auto filled fields based on login credentials, and make changes if required while validation.

Customizable Header Feature 

During the setup process, there could be a need to have additional headers to authenticate the API calls. Our platform enables this customizable feature. In this example , an additional header would be ‘Special-key’, this helps in providing authentication to access and make API calls to the Petstore. Json query for this would be as below:

"x-additional-headers": [

{

"name": "api_key",

"in": "header",

"required": true,

"value": "special-key"

}

]

Creating a workflow process

DBSync Swagger API supports the following methods listed below. For each of these methods workflow can be created   :

Read Methods -  this can be accessed in the Trigger section of the workflow.

                          Fig : 1.Trigger section in a Workflow 2. Select datasource 3. Select object


Write  Methods -  this can be accessed in the Rule section of the workflow.


          Fig : 1.Rules section in a Workflow 2. Console Adapter 3. Select insert/upsert/update 4. Select console

Workflow to create ‘GetAll’

                       Fig:Selecting Swagger API from select datasource

                                         Fig: How to select objects from Trigger section

                                                     Fig - Query result post validation


                                                    Fig: Rules Section


                                                  Fig: Mapping Screen



                                    Fig: Pop-up confirming workflow is saved

                                   Fig:  Integration complete

Workflow to create a ‘Pet’

Now we will create a new Pet in the Petstore.

Follow the same steps to create a post call. 

                                                  Fig: Trigger Section in a Workflow

                                                Fig: Rules Section in a Workflow

                               

                                              Fig: Mapping

                                            Fig: Integration complete

Steps to get started 

  1. To get started Click this link to create an account - 

https://www.mydbsync.com/product/cloud-workflow

  1. Setup your connection using similar steps listed in this document. 

  2. Create customizable processes and workflow.

  3. Use reference links below to create the same workflow.

Our Blogs 

References