Introduction

The API Connector plugin is a Process Tool used to select a template to consume data from an API. 

Prerequisites 

  1. An OAS document from an API service provider. 
  2. An authenticator client such as an oauth2 client.
  3. Joget Enterprise/Community?

How to install 

  1. Download the plugin JAR file from the Joget Marketplace. 
  2. Go to Settings > Manage Plugins > Upload Plugin. 
  3. Once uploaded, the plugin will be available in your Joget environment.

How to use 

API Connector Builder 

Once you have installed the API, do this: 

  1. In a new app or an existing app, navigate to the App Composer. 
  2. Under API Connector Builder, click the ADD NEW button to create a new API connector.

  3. Provide an IDName, and Description for the API connector, and click Save.

  4. For Select OAS document, upload the OAS document.

  5. Under API Server, for Select API Server, select the API server from the drop-down list.
  6. For region, select the SAP Subscription Billing Region from the drop-down list.
  7. Under Security, for Select Authentication method, select an authentication method from the drop-down list. In this example, it is oauth2.
  8. Configure the fields in the Authenticators section depending on the authentication method selected.

  9. Click the Design tab.
  10. In API Connector Builder, drag and drop an API request template to the canvas.

  11. Click the template to configure it. 
  12. Click SAVE.

List Builder 

  1. In List Builder, in the DATA tab, for Select Source of Data, select API Connector from the drop-down list.
  2. For API Connector, select the API Connector created.
  3. For Select Operation, select the operation created in API Connector Builder. Depending on the operation type, configure:
  4. For Base JSON Object Name for Multirow Data, configure the name of the base JSON object (e.g., data).
  5. For Total Record Count JSON Object Name, configure the total number of records in the JSON object (e.g., data.total).
  6. For Primary Key, configure the Unique Identifier of the JSON object (e.g., data.id). Mandatory field.
  7. In the DESIGN tab, drag and drop the API Connector to the list or canvas.
  8. Click the API Connector to configure the following properties:
  9. Click Apply Change and click SAVE.

Form Builder 

  1. In Form Builder, navigate to the SETTINGS tab. 
  2. Under Advanced, for Post Processing Tool, select API Connector from the drop-down list. 
  3. For API Connector, select the API connector created. 
  4. For Form, select the form to store the data to. 
  5. For Select Operation, select the operation created in the API Connector Builder. 
  6. For Base JSON Object Name for Multirow Data, select the name of the base JSON object (e.g., data).

Properties Configuration 

Operations 


POST/allowance-templates

Parameters:  

GET/allowance-templates

Parameters:  

PUT/allowance-templates

Parameters:  

SET/allowance-templates 

Parameters: 

Authenticators 

oauth2

openId

Note

Ensure to provide this Callback URL to your OpenID Connect service.

Plugin information 

The API Connector plugin is part of the Addon Builders suite, designed to help you create, manage, and secure custom APIs within your Joget platform. The available API elements cover a wide range of functionality, from managing users to handling forms and processes. 

Download Plugin 

You can download the API Connector plugin from the Joget Marketplace. 

Download Sample App