Table of Contents


  1. Preface
  2. Introduction to REST V2 Connector
  3. REST V2 connections
  4. REST V2 operations
  5. Mappings and mapping tasks with REST V2 Connector
  6. Appendix A: Supported swagger objects

REST V2 Connector

REST V2 Connector

REST target mapping example

REST target

You are a human resources administrator and you want to update details of an employee in Apache CouchDB.
To update employee details in CouchDB from a flat file, perform the following tasks:
  1. Create a flat file connection to read data from the flat file.
  2. Create a REST connection to write data to CouchDB.
    The following image shows the configured CouchDB connection:
  3. Create a CouchDB mapping.
  4. Add a Source transformation to include the flat file object that contains the employee details. Add the flat file connection.
  5. Add a Target transformation to write the employee details to CouchDB. Perform the following tasks on the
    1. In the
      field, select the REST connection to connect to CouchDB.
    2. In the
      field, select CouchDBPost as the operation.
      The following image shows the CouchDBPost in the list of write operations:
    3. In the
      Advanced Properties
      section, set the cache size and the transaction commit interval.
  6. On the
    Field Mapping
    tab, select the input elements to map to the target fields.
    The following image shows all the mapped fields between the input file and the CouchDB target:
  7. When you save and run the mapping in a
    task, the Secure Agent updates the employee details in CouchDB.

Updated December 14, 2020