shell> curl -X PUT --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/simple/all <<EOF
{ "collection": "products", "batchSize" : 3 }
EOF
HTTP/1.1 Created
content-type: application/json; charset=utf-8
x-content-type-options: nosniff
{
"result" : [
{
"_key" : "105540",
"_id" : "products/105540",
"_rev" : "_Y2g62Ju--D",
"Hello2" : "World2"
},
{
"_key" : "105536",
"_id" : "products/105536",
"_rev" : "_Y2g62Ju--B",
"Hello1" : "World1"
},
{
"_key" : "105543",
"_id" : "products/105543",
"_rev" : "_Y2g62Jy--_",
"Hello3" : "World3"
}
],
"hasMore" : true,
"id" : "105552",
"count" : 5,
"extra" : {
"stats" : {
"writesExecuted" : 0,
"writesIgnored" : 0,
"scannedFull" : 5,
"scannedIndex" : 0,
"filtered" : 0,
"httpRequests" : 0,
"executionTime" : 0.0002124309539794922,
"peakMemoryUsage" : 18096
},
"warnings" : [ ]
},
"cached" : false,
"error" : false,
"code" : 201
}