Table of Contents

Search

  1. Preface
  2. Introduction to REST V2 Connector
  3. Connections for REST V2
  4. REST V2 operations
  5. Mappings and mapping tasks with REST V2 Connector
  6. Swagger File Generation
  7. Appendix A: Swagger objects
  8. OpenAPI objects

REST V2 Connector

REST V2 Connector

REST target mapping example

REST target
mapping
example

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
    Target
    tab:
    1. In the
      Connection
      field, select the REST connection to connect to CouchDB.
    2. In the
      Operation
      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
    mapping
    task, the Secure Agent updates the employee details in CouchDB.

0 COMMENTS

We’d like to hear from you!