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