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

34 lines
673 B
Plaintext

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