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