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

30 lines
572 B
Plaintext

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