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