Table of Contents

Search

  1. Preface
  2. Introduction to Edge Data Streaming Custom Entity Types
  3. Managing Custom Entity Types
  4. Custom Entities from Maven Archetypes
  5. REST APIs
  6. HTTP Request and Response Parameters
  7. Sample JSON Requests and Responses
  8. Glossary

Developer Guide

Developer Guide

Retrieve All Links

Retrieve All Links

Use the GET method to retrieve all links in EDS.

GET Request in JSON Format

Generate a GET request. For example, the following GET request retrieves all links:
GET /api/dataflows/{dataflow-id}/links Content-Type: application/json Accept: application/json

GET Response in JSON Format

The following is the sample response for the 200 OK code when there are no links in the data flow:
{ "success": true, "total": 0, "count": 0, "items": [] }
The following is a sample response when there are two links in the data flow:
{ "total": 2, "count": 2, "success": true, "items": [ { "id": 46, "fromId": 47, "toIds": [44], "connectionId": 45, "transportTopic": "FROM_47", "isTransportTopicGenerated": true }, { "id": 48, "fromId": 43, "toIds": [47] } ] }
The following is a sample response for the 500 Internal Server Error code:
{ "success": false, "errors": [ { "code": INTERNAL_SERVER_ERROR, "parameters": [{error-message}], "errorMessage": "Failed to get all links. Exception : {error-message}." } ] }

0 COMMENTS

We’d like to hear from you!