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