shell> curl -X PUT --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/simple/by-example <<EOF
{
"collection" : "products",
"example" : {
"a.j" : 1
}
}
EOF
HTTP/1.1 Created
content-type: application/json; charset=utf-8
x-content-type-options: nosniff
{
"result" : [
{
"_key" : "70630",
"_id" : "products/70630",
"_rev" : "_ZXF6Z5S--A",
"a" : {
"k" : 1,
"j" : 1
},
"i" : 1
},
{
"_key" : "70632",
"_id" : "products/70632",
"_rev" : "_ZXF6Z5S--C",
"a" : {
"j" : 1
},
"i" : 1
}
],
"hasMore" : false,
"count" : 2,
"cached" : false,
"extra" : {
"stats" : {
"writesExecuted" : 0,
"writesIgnored" : 0,
"scannedFull" : 4,
"scannedIndex" : 0,
"filtered" : 2,
"httpRequests" : 0,
"executionTime" : 0.00019693374633789062,
"peakMemoryUsage" : 36921
},
"warnings" : [ ]
},
"error" : false,
"code" : 201
}