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

35 lines
736 B
Plaintext

shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/near
{ "collection": "products", "latitude" : 0, "longitude" : 0, "skip" : 1, "limit" : 2 }
HTTP/1.1 201 Created
content-type: application/json; charset=utf-8
{
"result" : [
{
"_id" : "products/1253270978",
"_key" : "1253270978",
"_rev" : "1253270978",
"name" : "Name/0.002/",
"loc" : [
0.002,
0
]
},
{
"_id" : "products/1252877762",
"_key" : "1252877762",
"_rev" : "1252877762",
"name" : "Name/-0.002/",
"loc" : [
-0.002,
0
]
}
],
"hasMore" : false,
"count" : 2,
"error" : false,
"code" : 201
}