Appearance
links
3 endpoints at a glance
| Method | Path | Summary |
|---|---|---|
GET | /links | List Links |
POST | /links | Create Link |
DELETE | /links/{link_id} | Delete Link |
links
List Links
GET
/links
List links matching the filters.
Three modes:
from_type+from_id→ outgoing edgesto_type+to_id→ incoming edgesentity_type+entity_id→ both directions in one shot
(what a detail-page "Related" panel wants)
Parameters
Header Parameters
authorization
Query Parameters
from_type
from_id
to_type
to_id
entity_type
entity_id
Responses
Successful Response
application/json
JSON "additionalProperties": "string"
{
}
Create Link
POST
/links
Parameters
Header Parameters
authorization
Request Body
application/json
JSON "from": { "type": "string", "id": "string", "ref": { "additionalProperties": "string" } }, "to": { "type": "string", "id": "string", "ref": { "additionalProperties": "string" } }, "kind": "related"
{
}
Responses
Successful Response
application/json
JSON "additionalProperties": "string"
{
}