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

50 lines
989 B
Plaintext

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