Table of Contents

Search

  1. Preface
  2. Introduction to Data Integration Hub
  3. Catalog
  4. Applications
  5. Topics
  6. Creating Topics
  7. Topic Properties
  8. Publications
  9. Creating Publications
  10. Publication Properties
  11. Subscriptions
  12. Creating Subscriptions
  13. Subscription Properties
  14. Events and Event Monitoring
  15. Dashboard and Reports
  16. Glossary

Operator Guide

Operator Guide

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!