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