shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/by-example <<EOF
{
"collection" : "products",
"example" : {
"a.j" : 1
}
}
EOF
HTTP/1.1 201 Created
content-type: application/json; charset=utf-8
{
"result" : [
{
"_id" : "products/806361810",
"_key" : "806361810",
"_rev" : "806361810",
"i" : 1,
"a" : {
"j" : 1,
"k" : 1
}
},
{
"_id" : "products/806689490",
"_key" : "806689490",
"_rev" : "806689490",
"i" : 1,
"a" : {
"j" : 1
}
}
],
"hasMore" : false,
"count" : 2,
"error" : false,
"code" : 201
}