1
0
Fork 0
arangodb/Documentation/Examples/RestSimpleByExample2.generated

35 lines
677 B
Plaintext

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/844100491",
"_key" : "844100491",
"_rev" : "844100491",
"i" : 1,
"a" : {
"j" : 1
}
},
{
"_id" : "products/843772811",
"_key" : "843772811",
"_rev" : "843772811",
"i" : 1,
"a" : {
"k" : 1,
"j" : 1
}
}
],
"hasMore" : false,
"count" : 2,
"error" : false,
"code" : 201
}