Table of Contents

Search

  1. Preface
  2. Introduction to Data Integration Hub
  3. Getting Started with Data Integration Hub
  4. Creating Topics
  5. Creating Publications
  6. Creating Subscriptions
  7. Appendix A: Glossary

Getting Started

Getting Started

Step 3. Create a Request to Run the Publication

Step 3. Create a Request to Run the Publication

To create a request to run the publication, you have to copy the URL of the REST API and the URL of the API Swagger file from the publication that you created in Step 2. Define Publication Properties.
  1. Create a POST request with the following details:
    • Request URL: REST API URL. For example:
      http://hostname:18080/dih-console/api/v1/publication/MyPublication/data
      Where
      MyPublication
      is the publication name.
    • Request body: Use the structure definition in the Swagger structure for the topic into which the publication publishes data to prepare the body of the request. Access the REST URL of the API Swagger file to view and copy the structure, for example:
      http://hostname:18080/dih-console/api/v1/publication/MyPublication/data?swagger
      Where
      MyPublication
      is the publication name.
      The following is an example of request payload for a topic that contains two topic tables, each containing two columns:
      { "Employee":[ { "EmployeeName":"John Smith" }, { "EmployeeId":"AA18" } ], "Department":[ { "DepartmentName":"Computer Science" }, { "DepartmentId":"Dep13" } ] }

0 COMMENTS

We’d like to hear from you!