shell> curl -X PUT --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/simple/first-example <<EOF
{
"collection" : "products",
"example" : {
"i" : 1
}
}
EOF
HTTP/1.1 undefined
content-type: application/json; charset=utf-8
x-content-type-options: nosniff
{
"document" : {
"_key" : "104667",
"_id" : "products/104667",
"_rev" : "_XUJzE2G--B",
"i" : 1
},
"error" : false,
"code" : 200
}