Table of Contents

Search

  1. Preface
  2. Introduction to Data Integration Hub
  3. PowerCenter Mappings and Workflows
  4. Data Engineering Integration and Streaming Mapping and Workflows
  5. Data Quality Mappings and Workflows
  6. Informatica Cloud Mappings and Tasks
  7. Data Integration Hub Workflows
  8. Data Integration Hub Transformations
  9. Operational Data Store Dashboard and Reports
  10. Forms Designer
  11. Data Integration Hub Publications and Subscriptions APIs
  12. Data Extraction APIs

Developer Guide

Developer Guide

Consume Data REST API Request

Consume Data REST API Request

To consume data through the API, copy the URL of the API from the Subscription page in
Data Integration Hub
.
Request Headers
Include the following headers in the request:
Accept - application/json Content-Type - application/json
To support UTF-8 character encoding, for example, to use Japanese characters in table and column names, include the following headers in the request:
Accept: application/json;charset=utf-8 Accept-Charset: charset=utf-8 Content-Type: application/json;charset=utf-8
Request Body
Use the following request syntax to consume data:
{ "batchSize": <value> "requestType": <value> "eventId": <value> "aggregated": <value> }
Where
<value>
takes one of the following values:
  • The
    batchSize
    value can range between 1 to 5000. Default is 500.
  • The
    requestType
    option can use the following values:
    • RECONSUME
    • REPROCESS
    • PROCESS
    Default is PROCESS.
  • The
    eventId
    is mandatory only when the
    requestType
    is set to
    REPROCESS
    or
    RECONSUME
    .
  • The
    aggregated
    option can use the following values:
    • true. The subscription consumes all the available publications in each API call. A separate aggregated event is created and the child event is processed.
    • false. The subscription consumes only the oldest publication in each API call. A separate aggregated event is not created and the child event is processed.
    Default is
    true
    . This option is not considered when the
    requestType
    is set to
    REPROCESS
    or
    RECONSUME
    .
For example:
To reprocess a failed subscription, use the following request syntax:
{ "batchSize": <value>, "requestType": "REPROCESS", "eventId": <eventId> }
For example:
{ "batchSize": 2, "requestType" : "REPROCESS", "eventId": 318007 }
To reconsume data that had previously been processed, use the following request syntax:
{ "batchSize": <value>, "requestType": "RECONSUME", "eventId": <eventId> }
For example:
{ "batchSize": 4, "requestType" : "REPROCESS", "eventId": 40559, }

0 COMMENTS

We’d like to hear from you!