1
0
Fork 0
arangodb/Documentation/Examples/RestSimpleFirstSingle.gener...

22 lines
408 B
Plaintext

shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/first <<EOF
{ "collection": "products" }
EOF
HTTP/1.1 200 OK
content-type: application/json; charset=utf-8
{
"result" : {
"_id" : "products/1512885491",
"_key" : "1512885491",
"_rev" : "1512885491",
"i" : 1,
"a" : {
"k" : 1,
"j" : 1
}
},
"error" : false,
"code" : 200
}