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 Links

Retrieve Links

Use the GET method to retrieve links based on ID in EDS.

GET Request in JSON Format

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

GET Response in JSON Format

The following is a sample response for the 200 OK code:
{ "id": {link-id}, "success": true, "fromId": {from-entity-id}, "toIds": [ {to-entity-id} ], "connectionId": {connection-entity-id} }
The following are sample responses for the 404 Not Found code:
{ "success": false, "errors": [ { "code": DATAFLOW_NOT_FOUND, "parameters": [{dataflow-id}], "errorMessage": "Dataflow with Id: {dataflow-id} not found" } ] }
{ "success": false, "errors": [ { "code": LINK_NOT_FOUND, "parameters": [{link-id}], "errorMessage": "Link with Id: {link-id} not found" } ] }
The following is a sample response for the 500 Internal Server Error code:
{ "success": false, "errors": [ { "code": INTERNAL_SERVER_ERROR, "parameters": [{link-id}, {error-message}], "errorMessage": "Failed to update link Id: {link-id}. Exception : {error-message}." } ] }

0 COMMENTS

We’d like to hear from you!