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

28 lines
593 B
Plaintext

shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/range <<EOF
{ "collection": "products", "attribute" : "i", "left" : 2, "right" : 4 }
EOF
HTTP/1.1 201 Created
content-type: application/json; charset=utf-8
{
"result" : [
{
"_id" : "products/1517931763",
"_key" : "1517931763",
"_rev" : "1517931763",
"i" : 2
},
{
"_id" : "products/1518128371",
"_key" : "1518128371",
"_rev" : "1518128371",
"i" : 3
}
],
"hasMore" : false,
"count" : 2,
"error" : false,
"code" : 201
}