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: "10469"
location: /_db/_system/_api/document/edges/10469
{
"_id" : "edges/10469",
"_key" : "10469",
"_rev" : "10469"
}
shell> curl --dump - http://localhost:8529/_api/document/edges/10469
HTTP/1.1 200 OK
content-type: application/json; charset=utf-8
etag: "10469"
{
"_key" : "10469",
"_id" : "edges/10469",
"_from" : "vertices/1",
"_to" : "vertices/2",
"_rev" : "10469",
"name" : "Emil"
}