shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/by-example <<EOF
{
"collection" : "products",
"example" : {
"i" : 1
}
}
EOF
HTTP/1.1 201 Created
content-type: application/json; charset=utf-8
x-content-type-options: nosniff
{
"result" : [
{
"_key" : "13072",
"_id" : "products/13072",
"_rev" : "_WnWW6l---B",
"a" : {
"j" : 1
},
"i" : 1
},
{
"_key" : "13068",
"_id" : "products/13068",
"_rev" : "_WnWW6l---_",
"a" : {
"k" : 1,
"j" : 1
},
"i" : 1
},
{
"_key" : "13078",
"_id" : "products/13078",
"_rev" : "_WnWW6lC--B",
"a" : {
"k" : 2,
"j" : 2
},
"i" : 1
},
{
"_key" : "13075",
"_id" : "products/13075",
"_rev" : "_WnWW6lC--_",
"i" : 1
}
],
"hasMore" : false,
"count" : 4,
"cached" : false,
"extra" : {
"stats" : {
"writesExecuted" : 0,
"writesIgnored" : 0,
"scannedFull" : 4,
"scannedIndex" : 0,
"filtered" : 0,
"httpRequests" : 0,
"executionTime" : 0.0004875659942626953
},
"warnings" : [ ]
},
"error" : false,
"code" : 201
}