Skip to main content

GET /links

Description

Retrieves data for all links and returns a JSON object containing an array of link objects.

This route processes HTTP GET requests sent to the /links endpoint.

Payload

No payload is needed.

Response

The response includes a JSON object with an array of all link objects.

Example:

[
{
"id": 1,
"source": 2,
"target": 5,
"relation": "relatesTo",
},
{
"id": 2,
"source": 4,
"target": 9,
"relation": "relatesTo",
},
]

For another example of the returned object, see links.

The HTTP status code indicates success (response.status == 200) or failure (response.status == 500).


Related articles: