Skip to main content

GET /links

Description

Gets data on links

The route handles the HTTP GET request made to the /links path.

Payload

No payload is required.

Response

The server returns a JSON array with data on links.

Example:

[
{
"id": 9,
"source": 60,
"target": 61,
"type": "e2s"
},
{
"id": 10,
"source": 48,
"target": 49,
"type": "s2s"
},
{
"id": 11,
"source": 54,
"target": 56,
"type": "e2s"
},
{
"id": 12,
"source": 56,
"target": 58,
"type": "s2s"
},
{
"id": 13,
"source": 49,
"target": 50,
"type": "e2s"
},
{
"id": 14,
"source": 56,
"target": 57,
"type": "s2s"
},
{
"id": 15,
"source": 53,
"target": 54,
"type": "s2s"
},
{
"id": 16,
"source": 64,
"target": 65,
"type": "e2s"
}
]

The HTTP status code shows whether the request succeeds (response.status == 200) or fails (response.status == 500).


Related articles: