1
0
Fork 0
arangodb/Documentation/Examples/RestEdgeCreateEdge.generated

31 lines
729 B
Plaintext

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/edge/?collection=edges&from=vertices/1&to=vertices/2
{
"name" : "Emil"
}
HTTP/1.1 202 Accepted
content-type: application/json; charset=utf-8
etag: "1584125917"
location: /_db/_system/_api/document/edges/1584125917
{
"error" : false,
"_id" : "edges/1584125917",
"_rev" : "1584125917",
"_key" : "1584125917"
}
shell> curl --data-binary @- --dump - http://localhost:8529/_api/edge/edges/1584125917
HTTP/1.1 200 OK
content-type: application/json; charset=utf-8
etag: "1584125917"
{
"name" : "Emil",
"_id" : "edges/1584125917",
"_rev" : "1584125917",
"_key" : "1584125917",
"_from" : "vertices/1",
"_to" : "vertices/2"
}