1
0
Fork 0

release version 2.5.0-alpha4

This commit is contained in:
Frank Celler 2015-02-17 17:16:26 +01:00
parent 15fb7131f1
commit 07ba03e444
468 changed files with 21307 additions and 2582 deletions

View File

@ -1,4 +1,4 @@
v2.5.0-alpha3 (2015-02-16)
v2.5.0-alpha4 (2015-02-17)
-------------------
* front-end: unwanted removal of index table header after creating new index

View File

@ -1,5 +1,5 @@
arangosh> col = db.example;
[ArangoCollection 949263359, "example" (type document, status loaded)]
[ArangoCollection 948889207, "example" (type document, status loaded)]
arangosh> col.unload();
arangosh> col;
[ArangoCollection 949263359, "example" (type document, status unloaded)]
[ArangoCollection 948889207, "example" (type document, status unloaded)]

View File

@ -7,14 +7,14 @@ shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/gharial
HTTP/1.1 202 Accepted
content-type: application/json
etag: 1497340927
etag: 1497622135
{
"error" : false,
"code" : 202,
"edge" : {
"_id" : "relation/1497340927",
"_rev" : "1497340927",
"_key" : "1497340927"
"_id" : "relation/1497622135",
"_rev" : "1497622135",
"_key" : "1497622135"
}
}

View File

@ -12,7 +12,7 @@ shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/gharial
HTTP/1.1 201 Created
content-type: application/json
etag: 1457757183
etag: 1458300535
{
"error" : false,
@ -44,6 +44,6 @@ etag: 1457757183
],
"orphanCollections" : [ ],
"_id" : "_graphs/social",
"_rev" : "1457757183"
"_rev" : "1458300535"
}
}

View File

@ -5,14 +5,14 @@ shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/gharial
HTTP/1.1 202 Accepted
content-type: application/json
etag: 1474534399
etag: 1475012215
{
"error" : false,
"code" : 202,
"vertex" : {
"_id" : "male/1474534399",
"_rev" : "1474534399",
"_key" : "1474534399"
"_id" : "male/1475012215",
"_rev" : "1475012215",
"_key" : "1475012215"
}
}

View File

@ -5,7 +5,7 @@ shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/gharial
HTTP/1.1 201 Created
content-type: application/json
etag: 1428397055
etag: 1428874871
{
"error" : false,
@ -29,6 +29,6 @@ etag: 1428397055
"otherVertices"
],
"_id" : "_graphs/social",
"_rev" : "1428397055"
"_rev" : "1428874871"
}
}

View File

@ -16,7 +16,7 @@ shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/gharial
HTTP/1.1 201 Created
content-type: application/json
etag: 1416141823
etag: 1416685175
{
"error" : false,
@ -36,6 +36,6 @@ etag: 1416141823
],
"orphanCollections" : [ ],
"_id" : "_graphs/myGraph",
"_rev" : "1416141823"
"_rev" : "1416685175"
}
}

View File

@ -0,0 +1,10 @@
shell> curl -X DELETE --data-binary @- --dump - http://localhost:8529/_api/gharial/social/edge/relation/aliceAndBob
HTTP/1.1 202 Accepted
content-type: application/json
{
"error" : false,
"code" : 202,
"removed" : true
}

View File

@ -0,0 +1,10 @@
shell> curl -X DELETE --data-binary @- --dump - http://localhost:8529/_api/gharial/social/vertex/female/alice
HTTP/1.1 202 Accepted
content-type: application/json
{
"error" : false,
"code" : 202,
"removed" : true
}

View File

@ -0,0 +1,10 @@
shell> curl -X DELETE --data-binary @- --dump - http://localhost:8529/_api/gharial/social
HTTP/1.1 200 OK
content-type: application/json
{
"error" : false,
"code" : 200,
"removed" : true
}

View File

@ -2,7 +2,7 @@ shell> curl -X DELETE --data-binary @- --dump - http://localhost:8529/_api/ghari
HTTP/1.1 200 OK
content-type: application/json
etag: 1467718655
etag: 1468196471
{
"error" : false,
@ -15,6 +15,6 @@ etag: 1467718655
"male"
],
"_id" : "_graphs/social",
"_rev" : "1467718655"
"_rev" : "1468196471"
}
}

View File

@ -2,7 +2,7 @@ shell> curl --data-binary @- --dump - http://localhost:8529/_api/gharial/social/
HTTP/1.1 200 OK
content-type: application/json
etag: 1500355583
etag: 1500636791
{
"error" : false,
@ -10,7 +10,7 @@ etag: 1500355583
"edge" : {
"_id" : "relation/aliceAndBob",
"_key" : "aliceAndBob",
"_rev" : "1500355583",
"_rev" : "1500636791",
"_from" : "female/alice",
"_to" : "male/bob",
"type" : "married"

View File

@ -2,7 +2,7 @@ shell> curl --data-binary @- --dump - http://localhost:8529/_api/gharial/myGraph
HTTP/1.1 200 OK
content-type: application/json
etag: 1417780223
etag: 1418323575
{
"error" : false,
@ -22,6 +22,6 @@ etag: 1417780223
],
"orphanCollections" : [ ],
"_id" : "_graphs/myGraph",
"_rev" : "1417780223"
"_rev" : "1418323575"
}
}

View File

@ -2,7 +2,7 @@ shell> curl --data-binary @- --dump - http://localhost:8529/_api/gharial/social/
HTTP/1.1 200 OK
content-type: application/json
etag: 1476500479
etag: 1476978295
{
"error" : false,
@ -10,7 +10,7 @@ etag: 1476500479
"vertex" : {
"_id" : "female/alice",
"_key" : "alice",
"_rev" : "1476500479",
"_rev" : "1476978295",
"name" : "Alice"
}
}

View File

@ -10,7 +10,7 @@ content-type: application/json
{
"_id" : "_graphs/social",
"_key" : "social",
"_rev" : "1395235839",
"_rev" : "1394468471",
"edgeDefinitions" : [
{
"collection" : "relation",
@ -29,7 +29,7 @@ content-type: application/json
{
"_id" : "_graphs/routeplanner",
"_key" : "routeplanner",
"_rev" : "1399626751",
"_rev" : "1398793847",
"orphanCollections" : [ ],
"edgeDefinitions" : [
{

View File

@ -0,0 +1,12 @@
shell> curl --data-binary @- --dump - http://localhost:8529/_api/gharial/social/edge
HTTP/1.1 200 OK
content-type: application/json
{
"error" : false,
"code" : 200,
"collections" : [
"relation"
]
}

View File

@ -0,0 +1,13 @@
shell> curl --data-binary @- --dump - http://localhost:8529/_api/gharial/social/vertex
HTTP/1.1 200 OK
content-type: application/json
{
"error" : false,
"code" : 200,
"collections" : [
"female",
"male"
]
}

View File

@ -5,15 +5,15 @@ shell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/gharia
HTTP/1.1 202 Accepted
content-type: application/json
etag: 1487772671
etag: 1488250487
{
"error" : false,
"code" : 202,
"vertex" : {
"_id" : "female/alice",
"_rev" : "1487772671",
"_oldRev" : "1485282303",
"_rev" : "1488250487",
"_oldRev" : "1485760119",
"_key" : "alice"
}
}

View File

@ -5,15 +5,15 @@ shell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/gharia
HTTP/1.1 202 Accepted
content-type: application/json
etag: 1520999423
etag: 1510532727
{
"error" : false,
"code" : 202,
"edge" : {
"_id" : "relation/aliceAndBob",
"_rev" : "1520999423",
"_oldRev" : "1519557631",
"_rev" : "1510532727",
"_oldRev" : "1509090935",
"_key" : "aliceAndBob"
}
}

View File

@ -5,15 +5,15 @@ shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/gharial/
HTTP/1.1 202 Accepted
content-type: application/json
etag: 1516542975
etag: 1506076279
{
"error" : false,
"code" : 202,
"edge" : {
"_id" : "relation/aliceAndBob",
"_rev" : "1516542975",
"_oldRev" : "1504484351",
"_rev" : "1506076279",
"_oldRev" : "1504765559",
"_key" : "aliceAndBob"
}
}

View File

@ -2,7 +2,7 @@ shell> curl -X DELETE --data-binary @- --dump - http://localhost:8529/_api/ghari
HTTP/1.1 200 OK
content-type: application/json
etag: 1447402495
etag: 1435821687
{
"error" : false,
@ -24,6 +24,6 @@ etag: 1447402495
],
"orphanCollections" : [ ],
"_id" : "_graphs/social",
"_rev" : "1447402495"
"_rev" : "1435821687"
}
}

View File

@ -0,0 +1,11 @@
shell> curl -X DELETE --data-binary @- --dump - http://localhost:8529/_api/gharial/social/vertex/male
HTTP/1.1 400 Bad Request
content-type: application/json
{
"error" : true,
"code" : 400,
"errorNum" : 1928,
"errorMessage" : "not in orphan collection"
}

View File

@ -15,7 +15,7 @@ shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/gharial/
HTTP/1.1 200 OK
content-type: application/json
etag: 1462868991
etag: 1463346807
{
"error" : false,
@ -39,6 +39,6 @@ etag: 1462868991
],
"orphanCollections" : [ ],
"_id" : "_graphs/social",
"_rev" : "1462868991"
"_rev" : "1463346807"
}
}

View File

@ -6,15 +6,15 @@ shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/gharial/
HTTP/1.1 202 Accepted
content-type: application/json
etag: 1483185151
etag: 1483662967
{
"error" : false,
"code" : 202,
"vertex" : {
"_id" : "female/alice",
"_rev" : "1483185151",
"_oldRev" : "1480694783",
"_rev" : "1483662967",
"_oldRev" : "1481172599",
"_key" : "alice"
}
}

View File

@ -4,21 +4,21 @@ HTTP/1.1 200 OK
content-type: application/json; charset=utf-8
{
"time" : 1424179249.208731,
"time" : 1424189770.272964,
"system" : {
"minorPageFaults" : 60159,
"majorPageFaults" : 2914,
"userTime" : 7.74105,
"systemTime" : 4.615852,
"minorPageFaults" : 59994,
"majorPageFaults" : 2917,
"userTime" : 7.265846,
"systemTime" : 4.128215,
"numberOfThreads" : 26,
"residentSize" : 135028736,
"residentSizePercent" : 0.03143882751464844,
"virtualSize" : 5110456320
"residentSize" : 139345920,
"residentSizePercent" : 0.032444000244140625,
"virtualSize" : 5111504896
},
"client" : {
"httpConnections" : 1,
"connectionTime" : {
"sum" : 0.0010569095611572266,
"sum" : 0.0015590190887451172,
"count" : 1,
"counts" : [
1,
@ -28,33 +28,33 @@ content-type: application/json; charset=utf-8
]
},
"totalTime" : {
"sum" : 27.283270120620728,
"sum" : 21.17373490333557,
"count" : 10674,
"counts" : [
10197,
383,
40,
46,
7,
10219,
407,
22,
24,
1,
0,
1
]
},
"requestTime" : {
"sum" : 25.57250666618347,
"sum" : 19.645156621932983,
"count" : 10674,
"counts" : [
10199,
382,
40,
46,
6,
10226,
401,
22,
23,
1,
0,
1
]
},
"queueTime" : {
"sum" : 0.26016998291015625,
"sum" : 0.24262094497680664,
"count" : 10674,
"counts" : [
10674,
@ -67,24 +67,24 @@ content-type: application/json; charset=utf-8
]
},
"ioTime" : {
"sum" : 1.4505934715270996,
"sum" : 1.2859573364257812,
"count" : 10674,
"counts" : [
10673,
0,
0,
0,
1,
0,
0,
0
]
},
"bytesSent" : {
"sum" : 3938201,
"sum" : 3937712,
"count" : 10674,
"counts" : [
2798,
7711,
2797,
7712,
21,
12,
132,
@ -117,7 +117,7 @@ content-type: application/json; charset=utf-8
"requestsOther" : 0
},
"server" : {
"uptime" : 37.12697100639343,
"uptime" : 30.63864803314209,
"physicalMemory" : 4294967296
},
"error" : false,

View File

@ -0,0 +1,292 @@
shell> curl --data-binary @- --dump - http://localhost:8529/_admin/statistics-description
HTTP/1.1 200 OK
content-type: application/json; charset=utf-8
{
"groups" : [
{
"group" : "system",
"name" : "Process Statistics",
"description" : "Statistics about the ArangoDB process"
},
{
"group" : "client",
"name" : "Client Connection Statistics",
"description" : "Statistics about the connections."
},
{
"group" : "http",
"name" : "HTTP Request Statistics",
"description" : "Statistics about the HTTP requests."
},
{
"group" : "server",
"name" : "Server Statistics",
"description" : "Statistics about the ArangoDB server"
}
],
"figures" : [
{
"group" : "system",
"identifier" : "userTime",
"name" : "User Time",
"description" : "Amount of time that this process has been scheduled in user mode, measured in seconds.",
"type" : "accumulated",
"units" : "seconds"
},
{
"group" : "system",
"identifier" : "systemTime",
"name" : "System Time",
"description" : "Amount of time that this process has been scheduled in kernel mode, measured in seconds.",
"type" : "accumulated",
"units" : "seconds"
},
{
"group" : "system",
"identifier" : "numberOfThreads",
"name" : "Number of Threads",
"description" : "Number of threads in the arangod process.",
"type" : "current",
"units" : "number"
},
{
"group" : "system",
"identifier" : "residentSize",
"name" : "Resident Set Size",
"description" : "The total size of the number of pages the process has in real memory. This is just the pages which count toward text, data, or stack space. This does not include pages which have not been demand-loaded in, or which are swapped out. The resident set size is reported in bytes.",
"type" : "current",
"units" : "bytes"
},
{
"group" : "system",
"identifier" : "residentSizePercent",
"name" : "Resident Set Size",
"description" : "The percentage of physical memory used by the process as resident set size.",
"type" : "current",
"units" : "percent"
},
{
"group" : "system",
"identifier" : "virtualSize",
"name" : "Virtual Memory Size",
"description" : "On Windows, this figure contains the total amount of memory that the memory manager has committed for the arangod process. On other systems, this figure contains The size of the virtual memory the process is using.",
"type" : "current",
"units" : "bytes"
},
{
"group" : "system",
"identifier" : "minorPageFaults",
"name" : "Minor Page Faults",
"description" : "The number of minor faults the process has made which have not required loading a memory page from disk. This figure is not reported on Windows.",
"type" : "accumulated",
"units" : "number"
},
{
"group" : "system",
"identifier" : "majorPageFaults",
"name" : "Major Page Faults",
"description" : "On Windows, this figure contains the total number of page faults. On other system, this figure contains the number of major faults the process has made which have required loading a memory page from disk.",
"type" : "accumulated",
"units" : "number"
},
{
"group" : "client",
"identifier" : "httpConnections",
"name" : "Client Connections",
"description" : "The number of connections that are currently open.",
"type" : "current",
"units" : "number"
},
{
"group" : "client",
"identifier" : "totalTime",
"name" : "Total Time",
"description" : "Total time needed to answer a request.",
"type" : "distribution",
"cuts" : [
0.01,
0.05,
0.1,
0.2,
0.5,
1
],
"units" : "seconds"
},
{
"group" : "client",
"identifier" : "requestTime",
"name" : "Request Time",
"description" : "Request time needed to answer a request.",
"type" : "distribution",
"cuts" : [
0.01,
0.05,
0.1,
0.2,
0.5,
1
],
"units" : "seconds"
},
{
"group" : "client",
"identifier" : "queueTime",
"name" : "Queue Time",
"description" : "Queue time needed to answer a request.",
"type" : "distribution",
"cuts" : [
0.01,
0.05,
0.1,
0.2,
0.5,
1
],
"units" : "seconds"
},
{
"group" : "client",
"identifier" : "bytesSent",
"name" : "Bytes Sent",
"description" : "Bytes sents for a request.",
"type" : "distribution",
"cuts" : [
250,
1000,
2000,
5000,
10000
],
"units" : "bytes"
},
{
"group" : "client",
"identifier" : "bytesReceived",
"name" : "Bytes Received",
"description" : "Bytes receiveds for a request.",
"type" : "distribution",
"cuts" : [
250,
1000,
2000,
5000,
10000
],
"units" : "bytes"
},
{
"group" : "client",
"identifier" : "connectionTime",
"name" : "Connection Time",
"description" : "Total connection time of a client.",
"type" : "distribution",
"cuts" : [
0.1,
1,
60
],
"units" : "seconds"
},
{
"group" : "http",
"identifier" : "requestsTotal",
"name" : "Total requests",
"description" : "Total number of HTTP requests.",
"type" : "accumulated",
"units" : "number"
},
{
"group" : "http",
"identifier" : "requestsAsync",
"name" : "Async requests",
"description" : "Number of asynchronously executed HTTP requests.",
"type" : "accumulated",
"units" : "number"
},
{
"group" : "http",
"identifier" : "requestsGet",
"name" : "HTTP GET requests",
"description" : "Number of HTTP GET requests.",
"type" : "accumulated",
"units" : "number"
},
{
"group" : "http",
"identifier" : "requestsHead",
"name" : "HTTP HEAD requests",
"description" : "Number of HTTP HEAD requests.",
"type" : "accumulated",
"units" : "number"
},
{
"group" : "http",
"identifier" : "requestsPost",
"name" : "HTTP POST requests",
"description" : "Number of HTTP POST requests.",
"type" : "accumulated",
"units" : "number"
},
{
"group" : "http",
"identifier" : "requestsPut",
"name" : "HTTP PUT requests",
"description" : "Number of HTTP PUT requests.",
"type" : "accumulated",
"units" : "number"
},
{
"group" : "http",
"identifier" : "requestsPatch",
"name" : "HTTP PATCH requests",
"description" : "Number of HTTP PATCH requests.",
"type" : "accumulated",
"units" : "number"
},
{
"group" : "http",
"identifier" : "requestsDelete",
"name" : "HTTP DELETE requests",
"description" : "Number of HTTP DELETE requests.",
"type" : "accumulated",
"units" : "number"
},
{
"group" : "http",
"identifier" : "requestsOptions",
"name" : "HTTP OPTIONS requests",
"description" : "Number of HTTP OPTIONS requests.",
"type" : "accumulated",
"units" : "number"
},
{
"group" : "http",
"identifier" : "requestsOther",
"name" : "other HTTP requests",
"description" : "Number of other HTTP requests.",
"type" : "accumulated",
"units" : "number"
},
{
"group" : "server",
"identifier" : "uptime",
"name" : "Server Uptime",
"description" : "Number of seconds elapsed since server start.",
"type" : "current",
"units" : "seconds"
},
{
"group" : "server",
"identifier" : "physicalMemory",
"name" : "Physical Memory",
"description" : "Physical memory in bytes.",
"type" : "current",
"units" : "bytes"
}
],
"error" : false,
"code" : 200
}

View File

@ -0,0 +1,10 @@
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/aqlfunction
{"name":"myfunctions::temperature::celsiustofahrenheit","code":"function (celsius) { return celsius * 1.8 + 32; }"}
HTTP/1.1 201 Created
content-type: application/json; charset=utf-8
{
"error" : false,
"code" : 201
}

View File

@ -0,0 +1,9 @@
shell> curl -X DELETE --data-binary @- --dump - http://localhost:8529/_api/aqlfunction/square::x::y
HTTP/1.1 200 OK
content-type: application/json; charset=utf-8
{
"error" : false,
"code" : 200
}

View File

@ -0,0 +1,11 @@
shell> curl -X DELETE --data-binary @- --dump - http://localhost:8529/_api/aqlfunction/myfunction::x::y
HTTP/1.1 404 Not Found
content-type: application/json; charset=utf-8
{
"error" : true,
"code" : 404,
"errorNum" : 1582,
"errorMessage" : "user function '%s()' not found"
}

View File

@ -0,0 +1,6 @@
shell> curl --data-binary @- --dump - http://localhost:8529/_api/aqlfunction
HTTP/1.1 200 OK
content-type: application/json; charset=utf-8
[ ]

View File

@ -0,0 +1,17 @@
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/batch
--SomeBoundaryValue
Content-Type: application/x-arango-batchpart
DELETE /_api/collection/notexisting1 HTTP/1.1
--SomeBoundaryValue
Content-Type: application/x-arango-batchpart
DELETE /_api/collection/notexisting2 HTTP/1.1
--SomeBoundaryValue--
HTTP/1.1 200 OK
x-arango-errors: 2
"--SomeBoundaryValue\r\nContent-Type: application/x-arango-batchpart\r\n\r\nHTTP/1.1 404 Not Found\r\nContent-Type: application/json; charset=utf-8\r\nContent-Length: 92\r\n\r\n{\"error\":true,\"code\":404,\"errorNum\":1203,\"errorMessage\":\"unknown collection 'notexisting1'\"}\r\n--SomeBoundaryValue\r\nContent-Type: application/x-arango-batchpart\r\n\r\nHTTP/1.1 404 Not Found\r\nContent-Type: application/json; charset=utf-8\r\nContent-Length: 92\r\n\r\n{\"error\":true,\"code\":404,\"errorNum\":1203,\"errorMessage\":\"unknown collection 'notexisting2'\"}\r\n--SomeBoundaryValue--"

View File

@ -37,4 +37,4 @@ HTTP/1.1 200 OK
content-type: multipart/form-data; boundary=SomeBoundaryValue
x-arango-errors: 1
"--SomeBoundaryValue\r\nContent-Type: application/x-arango-batchpart\r\nContent-Id: myId1\r\n\r\nHTTP/1.1 200 OK\r\nContent-Type: application/json; charset=utf-8\r\nContent-Length: 44\r\n\r\n{\"server\":\"arango\",\"version\":\"2.5.0-alpha3\"}\r\n--SomeBoundaryValue\r\nContent-Type: application/x-arango-batchpart\r\nContent-Id: myId2\r\n\r\nHTTP/1.1 404 Not Found\r\nContent-Type: application/json; charset=utf-8\r\nContent-Length: 88\r\n\r\n{\"error\":true,\"code\":404,\"errorNum\":1203,\"errorMessage\":\"unknown collection 'products'\"}\r\n--SomeBoundaryValue\r\nContent-Type: application/x-arango-batchpart\r\nContent-Id: someId\r\n\r\nHTTP/1.1 200 OK\r\nLocation: /_db/_system/_api/collection/products\r\nContent-Type: application/json; charset=utf-8\r\nContent-Length: 138\r\n\r\n{\"id\":\"1525718015\",\"name\":\"products\",\"waitForSync\":false,\"isVolatile\":false,\"isSystem\":false,\"status\":3,\"type\":2,\"error\":false,\"code\":200}\r\n--SomeBoundaryValue\r\nContent-Type: application/x-arango-batchpart\r\nContent-Id: nextId\r\n\r\nHTTP/1.1 200 OK\r\nLocation: /_db/_system/_api/collection/products/figures\r\nContent-Type: application/json; charset=utf-8\r\nContent-Length: 618\r\n\r\n{\"id\":\"1525718015\",\"name\":\"products\",\"isSystem\":false,\"doCompact\":true,\"isVolatile\":false,\"journalSize\":1048576,\"keyOptions\":{\"type\":\"traditional\",\"allowUserKeys\":true},\"waitForSync\":false,\"count\":0,\"figures\":{\"alive\":{\"count\":0,\"size\":0},\"dead\":{\"count\":0,\"size\":0,\"deletion\":0},\"datafiles\":{\"count\":0,\"fileSize\":0},\"journals\":{\"count\":0,\"fileSize\":0},\"compactors\":{\"count\":0,\"fileSize\":0},\"shapefiles\":{\"count\":0,\"fileSize\":0},\"shapes\":{\"count\":0,\"size\":0},\"attributes\":{\"count\":0,\"size\":0},\"indexes\":{\"count\":1,\"size\":2008},\"lastTick\":\"0\",\"uncollectedLogfileEntries\":0},\"status\":3,\"type\":2,\"error\":false,\"code\":200}\r\n--SomeBoundaryValue\r\nContent-Type: application/x-arango-batchpart\r\nContent-Id: otherId\r\n\r\nHTTP/1.1 200 OK\r\nContent-Type: application/json; charset=utf-8\r\nContent-Length: 44\r\n\r\n{\"id\":\"1525718015\",\"error\":false,\"code\":200}\r\n--SomeBoundaryValue--"
"--SomeBoundaryValue\r\nContent-Type: application/x-arango-batchpart\r\nContent-Id: myId1\r\n\r\nHTTP/1.1 200 OK\r\nContent-Type: application/json; charset=utf-8\r\nContent-Length: 44\r\n\r\n{\"server\":\"arango\",\"version\":\"2.5.0-alpha4\"}\r\n--SomeBoundaryValue\r\nContent-Type: application/x-arango-batchpart\r\nContent-Id: myId2\r\n\r\nHTTP/1.1 404 Not Found\r\nContent-Type: application/json; charset=utf-8\r\nContent-Length: 88\r\n\r\n{\"error\":true,\"code\":404,\"errorNum\":1203,\"errorMessage\":\"unknown collection 'products'\"}\r\n--SomeBoundaryValue\r\nContent-Type: application/x-arango-batchpart\r\nContent-Id: someId\r\n\r\nHTTP/1.1 200 OK\r\nLocation: /_db/_system/_api/collection/products\r\nContent-Type: application/json; charset=utf-8\r\nContent-Length: 138\r\n\r\n{\"id\":\"1515185783\",\"name\":\"products\",\"waitForSync\":false,\"isVolatile\":false,\"isSystem\":false,\"status\":3,\"type\":2,\"error\":false,\"code\":200}\r\n--SomeBoundaryValue\r\nContent-Type: application/x-arango-batchpart\r\nContent-Id: nextId\r\n\r\nHTTP/1.1 200 OK\r\nLocation: /_db/_system/_api/collection/products/figures\r\nContent-Type: application/json; charset=utf-8\r\nContent-Length: 618\r\n\r\n{\"id\":\"1515185783\",\"name\":\"products\",\"isSystem\":false,\"doCompact\":true,\"isVolatile\":false,\"journalSize\":1048576,\"keyOptions\":{\"type\":\"traditional\",\"allowUserKeys\":true},\"waitForSync\":false,\"count\":0,\"figures\":{\"alive\":{\"count\":0,\"size\":0},\"dead\":{\"count\":0,\"size\":0,\"deletion\":0},\"datafiles\":{\"count\":0,\"fileSize\":0},\"journals\":{\"count\":0,\"fileSize\":0},\"compactors\":{\"count\":0,\"fileSize\":0},\"shapefiles\":{\"count\":0,\"fileSize\":0},\"shapes\":{\"count\":0,\"size\":0},\"attributes\":{\"count\":0,\"size\":0},\"indexes\":{\"count\":1,\"size\":2008},\"lastTick\":\"0\",\"uncollectedLogfileEntries\":0},\"status\":3,\"type\":2,\"error\":false,\"code\":200}\r\n--SomeBoundaryValue\r\nContent-Type: application/x-arango-batchpart\r\nContent-Id: otherId\r\n\r\nHTTP/1.1 200 OK\r\nContent-Type: application/json; charset=utf-8\r\nContent-Length: 44\r\n\r\n{\"id\":\"1515185783\",\"error\":false,\"code\":200}\r\n--SomeBoundaryValue--"

View File

@ -6,7 +6,7 @@ content-type: application/json; charset=utf-8
location: /_db/_system/_api/collection/testCollectionBasics
{
"id" : "1367120895",
"id" : "1365960311",
"name" : "testCollectionBasics",
"waitForSync" : false,
"isVolatile" : false,
@ -24,7 +24,7 @@ content-type: application/json; charset=utf-8
location: /_db/_system/_api/collection/testCollectionEdges
{
"id" : "1367251967",
"id" : "1366091383",
"name" : "testCollectionEdges",
"waitForSync" : false,
"isVolatile" : false,

View File

@ -6,7 +6,7 @@ content-type: application/json; charset=utf-8
location: /_db/_system/_api/collection/testCollectionUsers
{
"id" : "1367514111",
"id" : "1366353527",
"name" : "testCollectionUsers",
"waitForSync" : false,
"isVolatile" : false,

View File

@ -1,10 +1,10 @@
shell> curl -X DELETE --data-binary @- --dump - http://localhost:8529/_api/collection/1393335295
shell> curl -X DELETE --data-binary @- --dump - http://localhost:8529/_api/collection/1392567927
HTTP/1.1 200 OK
content-type: application/json; charset=utf-8
{
"id" : "1393335295",
"id" : "1392567927",
"error" : false,
"code" : 200
}

View File

@ -4,7 +4,7 @@ HTTP/1.1 200 OK
content-type: application/json; charset=utf-8
{
"id" : "1393531903",
"id" : "1392764535",
"error" : false,
"code" : 200
}

View File

@ -6,482 +6,482 @@ content-type: application/json; charset=utf-8
{
"collections" : [
{
"id" : "1173789695",
"name" : "vertices1",
"isSystem" : false,
"status" : 3,
"type" : 2
},
{
"id" : "5086207",
"name" : "_statistics",
"isSystem" : true,
"status" : 3,
"type" : 2
},
{
"id" : "171007",
"name" : "_configuration",
"isSystem" : true,
"status" : 3,
"type" : 2
},
{
"id" : "16161791",
"name" : "_system_sessions_sessions",
"isSystem" : true,
"status" : 3,
"type" : 2
},
{
"id" : "5479423",
"name" : "_statistics15",
"isSystem" : true,
"status" : 3,
"type" : 2
},
{
"id" : "4561919",
"name" : "_aqlfunctions",
"isSystem" : true,
"status" : 3,
"type" : 2
},
{
"id" : "2333695",
"name" : "_modules",
"isSystem" : true,
"status" : 3,
"type" : 2
},
{
"id" : "6331391",
"name" : "_jobs",
"isSystem" : true,
"status" : 3,
"type" : 2
},
{
"id" : "1085643775",
"name" : "germanHighway",
"isSystem" : false,
"status" : 3,
"type" : 3
},
{
"id" : "999791615",
"name" : "Company",
"isSystem" : false,
"status" : 3,
"type" : 2
},
{
"id" : "1062050815",
"name" : "male",
"isSystem" : false,
"status" : 3,
"type" : 2
},
{
"id" : "7183359",
"name" : "_apps",
"isSystem" : true,
"status" : 3,
"type" : 2
},
{
"id" : "1086036991",
"name" : "internationalHighway",
"isSystem" : false,
"status" : 3,
"type" : 3
},
{
"id" : "1000184831",
"name" : "has_bought",
"isSystem" : false,
"status" : 3,
"type" : 3
},
{
"id" : "804035583",
"name" : "geo",
"isSystem" : false,
"status" : 3,
"type" : 2
},
{
"id" : "433151",
"name" : "_users",
"isSystem" : true,
"status" : 3,
"type" : 2
},
{
"id" : "2202623",
"name" : "_graphs",
"isSystem" : true,
"status" : 3,
"type" : 2
},
{
"id" : "6200319",
"name" : "_queues",
"isSystem" : true,
"status" : 3,
"type" : 2
},
{
"id" : "1085512703",
"name" : "germanCity",
"isSystem" : false,
"status" : 3,
"type" : 2
},
{
"id" : "999660543",
"name" : "friend_of",
"isSystem" : false,
"status" : 3,
"type" : 3
},
{
"id" : "1061919743",
"name" : "female",
"isSystem" : false,
"status" : 3,
"type" : 2
},
{
"id" : "2595839",
"name" : "_cluster_kickstarter_plans",
"isSystem" : true,
"status" : 3,
"type" : 2
},
{
"id" : "1085905919",
"name" : "frenchHighway",
"isSystem" : false,
"status" : 3,
"type" : 3
},
{
"id" : "1000053759",
"id" : "999745143",
"name" : "Electronics",
"isSystem" : false,
"status" : 3,
"type" : 2
},
{
"id" : "757636095",
"name" : "better-example",
"id" : "1084679799",
"name" : "frenchHighway",
"isSystem" : false,
"status" : 3,
"type" : 2
"type" : 3
},
{
"id" : "1091148799",
"name" : "animals",
"isSystem" : false,
"status" : 3,
"type" : 2
},
{
"id" : "999529471",
"name" : "Customer",
"isSystem" : false,
"status" : 3,
"type" : 2
},
{
"id" : "1090231295",
"name" : "demo",
"isSystem" : false,
"status" : 3,
"type" : 2
},
{
"id" : "4692991",
"name" : "_statisticsRaw",
"id" : "452215",
"name" : "_users",
"isSystem" : true,
"status" : 3,
"type" : 2
},
{
"id" : "2464767",
"name" : "_routing",
"id" : "2221687",
"name" : "_graphs",
"isSystem" : true,
"status" : 3,
"type" : 2
},
{
"id" : "1085774847",
"name" : "frenchCity",
"isSystem" : false,
"id" : "6219383",
"name" : "_queues",
"isSystem" : true,
"status" : 3,
"type" : 2
},
{
"id" : "1175165951",
"id" : "1174005367",
"name" : "edges2",
"isSystem" : false,
"status" : 3,
"type" : 3
},
{
"id" : "999922687",
"id" : "999220855",
"name" : "Customer",
"isSystem" : false,
"status" : 3,
"type" : 2
},
{
"id" : "2614903",
"name" : "_cluster_kickstarter_plans",
"isSystem" : true,
"status" : 3,
"type" : 2
},
{
"id" : "1061021303",
"name" : "relation",
"isSystem" : false,
"status" : 3,
"type" : 3
},
{
"id" : "1089922679",
"name" : "animals",
"isSystem" : false,
"status" : 3,
"type" : 2
},
{
"id" : "1172629111",
"name" : "vertices1",
"isSystem" : false,
"status" : 3,
"type" : 2
},
{
"id" : "1089005175",
"name" : "demo",
"isSystem" : false,
"status" : 3,
"type" : 2
},
{
"id" : "999614071",
"name" : "Groceries",
"isSystem" : false,
"status" : 3,
"type" : 2
},
{
"id" : "1062181887",
"name" : "relation",
"isSystem" : false,
"status" : 3,
"type" : 3
}
],
"names" : {
"vertices1" : {
"id" : "1173789695",
"name" : "vertices1",
"id" : "1084548727",
"name" : "frenchCity",
"isSystem" : false,
"status" : 3,
"type" : 2
},
"_statistics" : {
"id" : "5086207",
"name" : "_statistics",
"isSystem" : true,
"status" : 3,
"type" : 2
},
"_configuration" : {
"id" : "171007",
"name" : "_configuration",
"isSystem" : true,
"status" : 3,
"type" : 2
},
"_system_sessions_sessions" : {
"id" : "16161791",
"name" : "_system_sessions_sessions",
"isSystem" : true,
"status" : 3,
"type" : 2
},
"_statistics15" : {
"id" : "5479423",
"name" : "_statistics15",
"isSystem" : true,
"status" : 3,
"type" : 2
},
"_aqlfunctions" : {
"id" : "4561919",
"name" : "_aqlfunctions",
"isSystem" : true,
"status" : 3,
"type" : 2
},
"_modules" : {
"id" : "2333695",
"name" : "_modules",
"isSystem" : true,
"status" : 3,
"type" : 2
},
"_jobs" : {
"id" : "6331391",
"name" : "_jobs",
"isSystem" : true,
"status" : 3,
"type" : 2
},
"germanHighway" : {
"id" : "1085643775",
"name" : "germanHighway",
"isSystem" : false,
"status" : 3,
"type" : 3
},
"Company" : {
"id" : "999791615",
"name" : "Company",
{
"id" : "754116215",
"name" : "better-example",
"isSystem" : false,
"status" : 3,
"type" : 2
},
"male" : {
"id" : "1062050815",
{
"id" : "4712055",
"name" : "_statisticsRaw",
"isSystem" : true,
"status" : 3,
"type" : 2
},
{
"id" : "2483831",
"name" : "_routing",
"isSystem" : true,
"status" : 3,
"type" : 2
},
{
"id" : "1060890231",
"name" : "male",
"isSystem" : false,
"status" : 3,
"type" : 2
},
"_apps" : {
"id" : "7183359",
"name" : "_apps",
"isSystem" : true,
{
"id" : "999482999",
"name" : "Company",
"isSystem" : false,
"status" : 3,
"type" : 2
},
"internationalHighway" : {
"id" : "1086036991",
"name" : "internationalHighway",
{
"id" : "1084417655",
"name" : "germanHighway",
"isSystem" : false,
"status" : 3,
"type" : 3
},
"has_bought" : {
"id" : "1000184831",
{
"id" : "5105271",
"name" : "_statistics",
"isSystem" : true,
"status" : 3,
"type" : 2
},
{
"id" : "190071",
"name" : "_configuration",
"isSystem" : true,
"status" : 3,
"type" : 2
},
{
"id" : "16180855",
"name" : "_system_sessions_sessions",
"isSystem" : true,
"status" : 3,
"type" : 2
},
{
"id" : "999876215",
"name" : "has_bought",
"isSystem" : false,
"status" : 3,
"type" : 3
},
"geo" : {
"id" : "804035583",
{
"id" : "5498487",
"name" : "_statistics15",
"isSystem" : true,
"status" : 3,
"type" : 2
},
{
"id" : "1084810871",
"name" : "internationalHighway",
"isSystem" : false,
"status" : 3,
"type" : 3
},
{
"id" : "803726967",
"name" : "geo",
"isSystem" : false,
"status" : 3,
"type" : 2
},
{
"id" : "4580983",
"name" : "_aqlfunctions",
"isSystem" : true,
"status" : 3,
"type" : 2
},
{
"id" : "2352759",
"name" : "_modules",
"isSystem" : true,
"status" : 3,
"type" : 2
},
{
"id" : "6350455",
"name" : "_jobs",
"isSystem" : true,
"status" : 3,
"type" : 2
},
{
"id" : "1060759159",
"name" : "female",
"isSystem" : false,
"status" : 3,
"type" : 2
},
{
"id" : "999351927",
"name" : "friend_of",
"isSystem" : false,
"status" : 3,
"type" : 3
},
{
"id" : "7202423",
"name" : "_apps",
"isSystem" : true,
"status" : 3,
"type" : 2
},
{
"id" : "1084286583",
"name" : "germanCity",
"isSystem" : false,
"status" : 3,
"type" : 2
}
],
"names" : {
"Electronics" : {
"id" : "999745143",
"name" : "Electronics",
"isSystem" : false,
"status" : 3,
"type" : 2
},
"frenchHighway" : {
"id" : "1084679799",
"name" : "frenchHighway",
"isSystem" : false,
"status" : 3,
"type" : 3
},
"_users" : {
"id" : "433151",
"id" : "452215",
"name" : "_users",
"isSystem" : true,
"status" : 3,
"type" : 2
},
"_graphs" : {
"id" : "2202623",
"id" : "2221687",
"name" : "_graphs",
"isSystem" : true,
"status" : 3,
"type" : 2
},
"_queues" : {
"id" : "6200319",
"id" : "6219383",
"name" : "_queues",
"isSystem" : true,
"status" : 3,
"type" : 2
},
"germanCity" : {
"id" : "1085512703",
"name" : "germanCity",
"isSystem" : false,
"status" : 3,
"type" : 2
},
"friend_of" : {
"id" : "999660543",
"name" : "friend_of",
"edges2" : {
"id" : "1174005367",
"name" : "edges2",
"isSystem" : false,
"status" : 3,
"type" : 3
},
"female" : {
"id" : "1061919743",
"name" : "female",
"isSystem" : false,
"status" : 3,
"type" : 2
},
"_cluster_kickstarter_plans" : {
"id" : "2595839",
"name" : "_cluster_kickstarter_plans",
"isSystem" : true,
"status" : 3,
"type" : 2
},
"frenchHighway" : {
"id" : "1085905919",
"name" : "frenchHighway",
"isSystem" : false,
"status" : 3,
"type" : 3
},
"Electronics" : {
"id" : "1000053759",
"name" : "Electronics",
"isSystem" : false,
"status" : 3,
"type" : 2
},
"better-example" : {
"id" : "757636095",
"name" : "better-example",
"isSystem" : false,
"status" : 3,
"type" : 2
},
"animals" : {
"id" : "1091148799",
"name" : "animals",
"isSystem" : false,
"status" : 3,
"type" : 2
},
"Customer" : {
"id" : "999529471",
"id" : "999220855",
"name" : "Customer",
"isSystem" : false,
"status" : 3,
"type" : 2
},
"_cluster_kickstarter_plans" : {
"id" : "2614903",
"name" : "_cluster_kickstarter_plans",
"isSystem" : true,
"status" : 3,
"type" : 2
},
"relation" : {
"id" : "1061021303",
"name" : "relation",
"isSystem" : false,
"status" : 3,
"type" : 3
},
"animals" : {
"id" : "1089922679",
"name" : "animals",
"isSystem" : false,
"status" : 3,
"type" : 2
},
"vertices1" : {
"id" : "1172629111",
"name" : "vertices1",
"isSystem" : false,
"status" : 3,
"type" : 2
},
"demo" : {
"id" : "1090231295",
"id" : "1089005175",
"name" : "demo",
"isSystem" : false,
"status" : 3,
"type" : 2
},
"Groceries" : {
"id" : "999614071",
"name" : "Groceries",
"isSystem" : false,
"status" : 3,
"type" : 2
},
"frenchCity" : {
"id" : "1084548727",
"name" : "frenchCity",
"isSystem" : false,
"status" : 3,
"type" : 2
},
"better-example" : {
"id" : "754116215",
"name" : "better-example",
"isSystem" : false,
"status" : 3,
"type" : 2
},
"_statisticsRaw" : {
"id" : "4692991",
"id" : "4712055",
"name" : "_statisticsRaw",
"isSystem" : true,
"status" : 3,
"type" : 2
},
"_routing" : {
"id" : "2464767",
"id" : "2483831",
"name" : "_routing",
"isSystem" : true,
"status" : 3,
"type" : 2
},
"frenchCity" : {
"id" : "1085774847",
"name" : "frenchCity",
"male" : {
"id" : "1060890231",
"name" : "male",
"isSystem" : false,
"status" : 3,
"type" : 2
},
"edges2" : {
"id" : "1175165951",
"name" : "edges2",
"isSystem" : false,
"status" : 3,
"type" : 3
},
"Groceries" : {
"id" : "999922687",
"name" : "Groceries",
"Company" : {
"id" : "999482999",
"name" : "Company",
"isSystem" : false,
"status" : 3,
"type" : 2
},
"relation" : {
"id" : "1062181887",
"name" : "relation",
"germanHighway" : {
"id" : "1084417655",
"name" : "germanHighway",
"isSystem" : false,
"status" : 3,
"type" : 3
},
"_statistics" : {
"id" : "5105271",
"name" : "_statistics",
"isSystem" : true,
"status" : 3,
"type" : 2
},
"_configuration" : {
"id" : "190071",
"name" : "_configuration",
"isSystem" : true,
"status" : 3,
"type" : 2
},
"_system_sessions_sessions" : {
"id" : "16180855",
"name" : "_system_sessions_sessions",
"isSystem" : true,
"status" : 3,
"type" : 2
},
"has_bought" : {
"id" : "999876215",
"name" : "has_bought",
"isSystem" : false,
"status" : 3,
"type" : 3
},
"_statistics15" : {
"id" : "5498487",
"name" : "_statistics15",
"isSystem" : true,
"status" : 3,
"type" : 2
},
"internationalHighway" : {
"id" : "1084810871",
"name" : "internationalHighway",
"isSystem" : false,
"status" : 3,
"type" : 3
},
"geo" : {
"id" : "803726967",
"name" : "geo",
"isSystem" : false,
"status" : 3,
"type" : 2
},
"_aqlfunctions" : {
"id" : "4580983",
"name" : "_aqlfunctions",
"isSystem" : true,
"status" : 3,
"type" : 2
},
"_modules" : {
"id" : "2352759",
"name" : "_modules",
"isSystem" : true,
"status" : 3,
"type" : 2
},
"_jobs" : {
"id" : "6350455",
"name" : "_jobs",
"isSystem" : true,
"status" : 3,
"type" : 2
},
"female" : {
"id" : "1060759159",
"name" : "female",
"isSystem" : false,
"status" : 3,
"type" : 2
},
"friend_of" : {
"id" : "999351927",
"name" : "friend_of",
"isSystem" : false,
"status" : 3,
"type" : 3
},
"_apps" : {
"id" : "7202423",
"name" : "_apps",
"isSystem" : true,
"status" : 3,
"type" : 2
},
"germanCity" : {
"id" : "1084286583",
"name" : "germanCity",
"isSystem" : false,
"status" : 3,
"type" : 2
}
},
"error" : false,

View File

@ -4,13 +4,13 @@ HTTP/1.1 200 OK
content-type: application/json; charset=utf-8
{
"id" : "1389927423",
"id" : "1389160055",
"name" : "products",
"isSystem" : false,
"status" : 3,
"type" : 2,
"checksum" : 3814707682,
"revision" : "1390255103",
"checksum" : 4168020428,
"revision" : "1389487735",
"error" : false,
"code" : 200
}

View File

@ -4,13 +4,13 @@ HTTP/1.1 200 OK
content-type: application/json; charset=utf-8
{
"id" : "1390517247",
"id" : "1389749879",
"name" : "products",
"isSystem" : false,
"status" : 3,
"type" : 2,
"checksum" : 2975794988,
"revision" : "1390844927",
"checksum" : 2583960127,
"revision" : "1390077559",
"error" : false,
"code" : 200
}

View File

@ -5,7 +5,7 @@ content-type: application/json; charset=utf-8
location: /_db/_system/_api/collection/products/count
{
"id" : "1368103935",
"id" : "1366943351",
"name" : "products",
"isSystem" : false,
"doCompact" : true,

View File

@ -5,7 +5,7 @@ content-type: application/json; charset=utf-8
location: /_db/_system/_api/collection/products/figures
{
"id" : "1388747775",
"id" : "1387980407",
"name" : "products",
"isSystem" : false,
"doCompact" : true,
@ -19,8 +19,8 @@ location: /_db/_system/_api/collection/products/figures
"count" : 1,
"figures" : {
"alive" : {
"count" : 1,
"size" : 88
"count" : 0,
"size" : 0
},
"dead" : {
"count" : 0,
@ -44,19 +44,19 @@ location: /_db/_system/_api/collection/products/figures
"fileSize" : 0
},
"shapes" : {
"count" : 1,
"size" : 104
"count" : 0,
"size" : 0
},
"attributes" : {
"count" : 1,
"size" : 48
"count" : 0,
"size" : 0
},
"indexes" : {
"count" : 1,
"size" : 2008
},
"lastTick" : "1389140991",
"uncollectedLogfileEntries" : 0
"lastTick" : "1388373623",
"uncollectedLogfileEntries" : 1
},
"status" : 3,
"type" : 2,

View File

@ -1,11 +1,11 @@
shell> curl --data-binary @- --dump - http://localhost:8529/_api/collection/1367710719/properties
shell> curl --data-binary @- --dump - http://localhost:8529/_api/collection/1366550135/properties
HTTP/1.1 200 OK
content-type: application/json; charset=utf-8
location: /_db/_system/_api/collection/products/properties
{
"id" : "1367710719",
"id" : "1366550135",
"name" : "products",
"isSystem" : false,
"doCompact" : true,

View File

@ -5,7 +5,7 @@ content-type: application/json; charset=utf-8
location: /_db/_system/_api/collection/products/properties
{
"id" : "1367907327",
"id" : "1366746743",
"name" : "products",
"isSystem" : false,
"doCompact" : true,

View File

@ -4,7 +4,7 @@ HTTP/1.1 200 OK
content-type: application/json; charset=utf-8
{
"id" : "1389665279",
"id" : "1388897911",
"name" : "products",
"isSystem" : false,
"status" : 3,

View File

@ -4,7 +4,7 @@ HTTP/1.1 200 OK
content-type: application/json; charset=utf-8
{
"id" : "1391107071",
"id" : "1390339703",
"name" : "products",
"isSystem" : false,
"count" : 0,

View File

@ -7,7 +7,7 @@ HTTP/1.1 200 OK
content-type: application/json; charset=utf-8
{
"id" : "1391827967",
"id" : "1391060599",
"name" : "products",
"isSystem" : false,
"doCompact" : true,

View File

@ -7,7 +7,7 @@ HTTP/1.1 200 OK
content-type: application/json; charset=utf-8
{
"id" : "1392155647",
"id" : "1391322743",
"name" : "newname",
"isSystem" : false,
"status" : 3,

View File

@ -4,7 +4,7 @@ HTTP/1.1 200 OK
content-type: application/json; charset=utf-8
{
"id" : "1391565823",
"id" : "1390798455",
"name" : "products",
"isSystem" : false,
"status" : 3,

View File

@ -4,7 +4,7 @@ HTTP/1.1 200 OK
content-type: application/json; charset=utf-8
{
"id" : "1391369215",
"id" : "1390601847",
"name" : "products",
"isSystem" : false,
"status" : 4,

View File

@ -0,0 +1,12 @@
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/collection/products/rotate
{
}
HTTP/1.1 200 OK
content-type: application/json; charset=utf-8
{
"result" : true,
"error" : false,
"code" : 200
}

View File

@ -0,0 +1,13 @@
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/collection/products/rotate
{
}
HTTP/1.1 400 Bad Request
content-type: application/json; charset=utf-8
{
"error" : true,
"code" : 400,
"errorNum" : 1105,
"errorMessage" : "could not rotate journal: no journal"
}

View File

@ -7,20 +7,20 @@ content-type: application/json; charset=utf-8
{
"result" : [
{
"_id" : "products/1095539711",
"_key" : "1095539711",
"_rev" : "1095539711",
"hello5" : "world1"
"_id" : "products/1093330551",
"_key" : "1093330551",
"_rev" : "1093330551",
"hello2" : "world1"
},
{
"_id" : "products/1094884351",
"_key" : "1094884351",
"_rev" : "1094884351",
"hello3" : "world1"
"_id" : "products/1093985911",
"_key" : "1093985911",
"_rev" : "1093985911",
"hello4" : "world1"
}
],
"hasMore" : true,
"id" : "1095736319",
"id" : "1094510199",
"count" : 5,
"extra" : {
"stats" : {

View File

@ -7,15 +7,15 @@ content-type: application/json; charset=utf-8
{
"result" : [
{
"_id" : "products/1093639167",
"_key" : "1093639167",
"_rev" : "1093639167",
"_id" : "products/1092413047",
"_key" : "1092413047",
"_rev" : "1092413047",
"hello2" : "world1"
},
{
"_id" : "products/1093311487",
"_key" : "1093311487",
"_rev" : "1093311487",
"_id" : "products/1092085367",
"_key" : "1092085367",
"_rev" : "1092085367",
"hello1" : "world1"
}
],

View File

@ -0,0 +1,11 @@
shell> curl -X POST --dump - http://localhost:8529/_api/cursor
HTTP/1.1 400 Bad Request
content-type: application/json; charset=utf-8
{
"error" : true,
"code" : 400,
"errorNum" : 1502,
"errorMessage" : "query is empty"
}

View File

@ -0,0 +1,35 @@
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/cursor
{"query":"FOR i IN 1..1000 FILTER i > 500 LIMIT 10 RETURN i","count":true,"options":{"fullCount":true}}
HTTP/1.1 201 Created
content-type: application/json; charset=utf-8
{
"result" : [
501,
502,
503,
504,
505,
506,
507,
508,
509,
510
],
"hasMore" : false,
"count" : 10,
"extra" : {
"stats" : {
"writesExecuted" : 0,
"writesIgnored" : 0,
"scannedFull" : 0,
"scannedIndex" : 0,
"filtered" : 500,
"fullCount" : 500
},
"warnings" : [ ]
},
"error" : false,
"code" : 201
}

View File

@ -0,0 +1,12 @@
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/cursor
{"query":"FOR u IN unknowncoll LIMIT 2 RETURN u","count":true,"batchSize":2}
HTTP/1.1 404 Not Found
content-type: application/json; charset=utf-8
{
"error" : true,
"code" : 404,
"errorNum" : 1203,
"errorMessage" : "collection not found (unknowncoll)"
}

View File

@ -7,20 +7,20 @@ content-type: application/json; charset=utf-8
{
"result" : [
{
"_id" : "products/1101110271",
"_key" : "1101110271",
"_rev" : "1101110271",
"hello2" : "world1"
"_id" : "products/1099556471",
"_key" : "1099556471",
"_rev" : "1099556471",
"hello1" : "world1"
},
{
"_id" : "products/1100782591",
"_key" : "1100782591",
"_rev" : "1100782591",
"hello1" : "world1"
"_id" : "products/1099884151",
"_key" : "1099884151",
"_rev" : "1099884151",
"hello2" : "world1"
}
],
"hasMore" : true,
"id" : "1102289919",
"id" : "1101063799",
"count" : 5,
"extra" : {
"stats" : {
@ -34,5 +34,5 @@ content-type: application/json; charset=utf-8
"error" : false,
"code" : 201
}
shell> curl -X DELETE --data-binary @- --dump - http://localhost:8529/_api/cursor/1102289919
shell> curl -X DELETE --data-binary @- --dump - http://localhost:8529/_api/cursor/1101063799

View File

@ -0,0 +1,22 @@
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/cursor
{"query":"REMOVE 'bar' IN products OPTIONS { ignoreErrors: true }"}
HTTP/1.1 201 Created
content-type: application/json; charset=utf-8
{
"result" : [ ],
"hasMore" : false,
"extra" : {
"stats" : {
"writesExecuted" : 0,
"writesIgnored" : 1,
"scannedFull" : 0,
"scannedIndex" : 0,
"filtered" : 0
},
"warnings" : [ ]
},
"error" : false,
"code" : 201
}

View File

@ -0,0 +1,22 @@
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/cursor
{"query":"FOR p IN products REMOVE p IN products"}
HTTP/1.1 201 Created
content-type: application/json; charset=utf-8
{
"result" : [ ],
"hasMore" : false,
"extra" : {
"stats" : {
"writesExecuted" : 2,
"writesIgnored" : 0,
"scannedFull" : 2,
"scannedIndex" : 0,
"filtered" : 0
},
"warnings" : [ ]
},
"error" : false,
"code" : 201
}

View File

@ -0,0 +1,12 @@
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/cursor
{"query":"REMOVE 'foo' IN products"}
HTTP/1.1 404 Not Found
content-type: application/json; charset=utf-8
{
"error" : true,
"code" : 404,
"errorNum" : 1202,
"errorMessage" : "document not found (while executing)"
}

View File

@ -1,7 +1,7 @@
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/cursor
{"query":"FOR p IN products LIMIT 5 RETURN p","count":true,"batchSize":2}
shell> curl -X PUT --dump - http://localhost:8529/_api/cursor/1100323839
shell> curl -X PUT --dump - http://localhost:8529/_api/cursor/1099097719
HTTP/1.1 200 OK
content-type: application/json; charset=utf-8
@ -9,20 +9,20 @@ content-type: application/json; charset=utf-8
{
"result" : [
{
"_id" : "products/1099144191",
"_key" : "1099144191",
"_rev" : "1099144191",
"hello2" : "world1"
"_id" : "products/1098573431",
"_key" : "1098573431",
"_rev" : "1098573431",
"hello4" : "world1"
},
{
"_id" : "products/1099471871",
"_key" : "1099471871",
"_rev" : "1099471871",
"hello3" : "world1"
"_id" : "products/1097918071",
"_key" : "1097918071",
"_rev" : "1097918071",
"hello2" : "world1"
}
],
"hasMore" : true,
"id" : "1100323839",
"id" : "1099097719",
"count" : 5,
"extra" : {
"stats" : {

View File

@ -0,0 +1,11 @@
shell> curl -X PUT --dump - http://localhost:8529/_api/cursor/123123
HTTP/1.1 404 Not Found
content-type: application/json; charset=utf-8
{
"error" : true,
"code" : 404,
"errorNum" : 1600,
"errorMessage" : "cursor not found"
}

View File

@ -0,0 +1,11 @@
shell> curl -X PUT --dump - http://localhost:8529/_api/cursor
HTTP/1.1 400 Bad Request
content-type: application/json; charset=utf-8
{
"error" : true,
"code" : 400,
"errorNum" : 400,
"errorMessage" : "bad parameter"
}

View File

@ -0,0 +1,34 @@
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/cursor
{"query":"FOR i IN 1..10 LET a = 1 LET b = 2 FILTER a + b == 3 RETURN i","count":true,"options":{"maxPlans":1,"optimizer":{"rules":["-all","+remove-unnecessary-filters"]}}}
HTTP/1.1 201 Created
content-type: application/json; charset=utf-8
{
"result" : [
1,
2,
3,
4,
5,
6,
7,
8,
9,
10
],
"hasMore" : false,
"count" : 10,
"extra" : {
"stats" : {
"writesExecuted" : 0,
"writesIgnored" : 0,
"scannedFull" : 0,
"scannedIndex" : 0,
"filtered" : 0
},
"warnings" : [ ]
},
"error" : false,
"code" : 201
}

View File

@ -0,0 +1,11 @@
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/database
{"name":"example"}
HTTP/1.1 201 Created
content-type: application/json; charset=utf-8
{
"result" : true,
"error" : false,
"code" : 201
}

View File

@ -0,0 +1,11 @@
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/database
{"name":"mydb","users":[{"username":"admin","passwd":"secret","active":true},{"username":"tester","passwd":"test001","active":false}]}
HTTP/1.1 201 Created
content-type: application/json; charset=utf-8
{
"result" : true,
"error" : false,
"code" : 201
}

View File

@ -0,0 +1,10 @@
shell> curl -X DELETE --data-binary @- --dump - http://localhost:8529/_api/database/example
HTTP/1.1 200 OK
content-type: application/json; charset=utf-8
{
"result" : true,
"error" : false,
"code" : 200
}

View File

@ -0,0 +1,12 @@
shell> curl --data-binary @- --dump - http://localhost:8529/_api/database
HTTP/1.1 200 OK
content-type: application/json; charset=utf-8
{
"result" : [
"_system"
],
"error" : false,
"code" : 200
}

View File

@ -6,8 +6,8 @@ content-type: application/json; charset=utf-8
{
"result" : {
"name" : "_system",
"id" : "105471",
"path" : "/tmp/vocdir.24699/databases/database-105471",
"id" : "124535",
"path" : "/tmp/vocdir.41230/databases/database-124535",
"isSystem" : true
},
"error" : false,

View File

@ -0,0 +1,12 @@
shell> curl --data-binary @- --dump - http://localhost:8529/_api/database/user
HTTP/1.1 200 OK
content-type: application/json; charset=utf-8
{
"result" : [
"_system"
],
"error" : false,
"code" : 200
}

View File

@ -1,11 +1,11 @@
shell> curl -X DELETE --data-binary @- --dump - http://localhost:8529/_api/document/products/1541708799
shell> curl -X DELETE --data-binary @- --dump - http://localhost:8529/_api/document/products/1531242103
HTTP/1.1 200 OK
content-type: application/json; charset=utf-8
{
"error" : false,
"_id" : "products/1541708799",
"_rev" : "1541708799",
"_key" : "1541708799"
"_id" : "products/1531242103",
"_rev" : "1531242103",
"_key" : "1531242103"
}

View File

@ -1,15 +1,15 @@
shell> curl -X DELETE --header 'If-Match: "1543609343"' --dump - http://localhost:8529/_api/document/products/1543281663
shell> curl -X DELETE --header 'If-Match: "1533142647"' --dump - http://localhost:8529/_api/document/products/1532814967
HTTP/1.1 412 Precondition Failed
content-type: application/json; charset=utf-8
etag: "1543281663"
etag: "1532814967"
{
"error" : true,
"code" : 412,
"errorNum" : 1200,
"errorMessage" : "precondition failed",
"_id" : "products/1543281663",
"_rev" : "1543281663",
"_key" : "1543281663"
"_id" : "products/1532814967",
"_rev" : "1532814967",
"_key" : "1532814967"
}

View File

@ -1,11 +1,11 @@
shell> curl -X DELETE --data-binary @- --dump - http://localhost:8529/_api/document/products/1542429695
shell> curl -X DELETE --data-binary @- --dump - http://localhost:8529/_api/document/products/1531962999
HTTP/1.1 404 Not Found
content-type: application/json; charset=utf-8
{
"error" : true,
"errorMessage" : "document /_api/document/products/1542429695 not found",
"errorMessage" : "document /_api/document/products/1531962999 not found",
"code" : 404,
"errorNum" : 1202
}

View File

@ -1,20 +1,20 @@
shell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/document/products/1537907711
shell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/document/products/1527441015
{
"hello" : "world"
}
HTTP/1.1 202 Accepted
content-type: application/json; charset=utf-8
etag: "1538235391"
location: /_db/_system/_api/document/products/1537907711
etag: "1527768695"
location: /_db/_system/_api/document/products/1527441015
{
"error" : false,
"_id" : "products/1537907711",
"_rev" : "1538235391",
"_key" : "1537907711"
"_id" : "products/1527441015",
"_rev" : "1527768695",
"_key" : "1527441015"
}
shell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/document/products/1537907711
shell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/document/products/1527441015
{
"numbers" : {
"one" : 1,
@ -26,20 +26,20 @@ shell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/docume
HTTP/1.1 202 Accepted
content-type: application/json; charset=utf-8
etag: "1538825215"
location: /_db/_system/_api/document/products/1537907711
etag: "1528358519"
location: /_db/_system/_api/document/products/1527441015
{
"error" : false,
"_id" : "products/1537907711",
"_rev" : "1538825215",
"_key" : "1537907711"
"_id" : "products/1527441015",
"_rev" : "1528358519",
"_key" : "1527441015"
}
shell> curl --data-binary @- --dump - http://localhost:8529/_api/document/products/1537907711
shell> curl --data-binary @- --dump - http://localhost:8529/_api/document/products/1527441015
HTTP/1.1 200 OK
content-type: application/json; charset=utf-8
etag: "1538825215"
etag: "1528358519"
{
"one" : "world",
@ -50,11 +50,11 @@ etag: "1538825215"
"two" : 2,
"three" : 3
},
"_id" : "products/1537907711",
"_rev" : "1538825215",
"_key" : "1537907711"
"_id" : "products/1527441015",
"_rev" : "1528358519",
"_key" : "1527441015"
}
shell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/document/products/1537907711?keepNull=false
shell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/document/products/1527441015?keepNull=false
{
"hello" : null,
"numbers" : {
@ -64,20 +64,20 @@ shell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/docume
HTTP/1.1 202 Accepted
content-type: application/json; charset=utf-8
etag: "1539283967"
location: /_db/_system/_api/document/products/1537907711
etag: "1528817271"
location: /_db/_system/_api/document/products/1527441015
{
"error" : false,
"_id" : "products/1537907711",
"_rev" : "1539283967",
"_key" : "1537907711"
"_id" : "products/1527441015",
"_rev" : "1528817271",
"_key" : "1527441015"
}
shell> curl --data-binary @- --dump - http://localhost:8529/_api/document/products/1537907711
shell> curl --data-binary @- --dump - http://localhost:8529/_api/document/products/1527441015
HTTP/1.1 200 OK
content-type: application/json; charset=utf-8
etag: "1539283967"
etag: "1528817271"
{
"one" : "world",
@ -88,7 +88,7 @@ etag: "1539283967"
"three" : 3,
"four" : 4
},
"_id" : "products/1537907711",
"_rev" : "1539283967",
"_key" : "1537907711"
"_id" : "products/1527441015",
"_rev" : "1528817271",
"_key" : "1527441015"
}

View File

@ -1,8 +1,8 @@
shell> curl --data-binary @- --dump - http://localhost:8529/_api/document/products/1540135935
shell> curl --data-binary @- --dump - http://localhost:8529/_api/document/products/1529669239
HTTP/1.1 200 OK
content-type: application/json; charset=utf-8
etag: "1540135935"
etag: "1529669239"
{
"inhabitants" : {
@ -10,11 +10,11 @@ etag: "1540135935"
"india" : 1263590000,
"usa" : 319220000
},
"_id" : "products/1540135935",
"_rev" : "1540135935",
"_key" : "1540135935"
"_id" : "products/1529669239",
"_rev" : "1529669239",
"_key" : "1529669239"
}
shell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/document/products/1540135935?mergeObjects=true
shell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/document/products/1529669239?mergeObjects=true
{
"inhabitants" : {
"indonesia" : 252164800,
@ -22,11 +22,11 @@ shell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/docume
}
}
shell> curl --data-binary @- --dump - http://localhost:8529/_api/document/products/1540135935
shell> curl --data-binary @- --dump - http://localhost:8529/_api/document/products/1529669239
HTTP/1.1 200 OK
content-type: application/json; charset=utf-8
etag: "1540660223"
etag: "1530193527"
{
"inhabitants" : {
@ -36,11 +36,11 @@ etag: "1540660223"
"indonesia" : 252164800,
"brazil" : 203553000
},
"_id" : "products/1540135935",
"_rev" : "1540660223",
"_key" : "1540135935"
"_id" : "products/1529669239",
"_rev" : "1530193527",
"_key" : "1529669239"
}
shell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/document/products/1540135935?mergeObjects=false
shell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/document/products/1529669239?mergeObjects=false
{
"inhabitants" : {
"pakistan" : 188346000
@ -49,26 +49,26 @@ shell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/docume
HTTP/1.1 202 Accepted
content-type: application/json; charset=utf-8
etag: "1541118975"
location: /_db/_system/_api/document/products/1540135935
etag: "1530652279"
location: /_db/_system/_api/document/products/1529669239
{
"error" : false,
"_id" : "products/1540135935",
"_rev" : "1541118975",
"_key" : "1540135935"
"_id" : "products/1529669239",
"_rev" : "1530652279",
"_key" : "1529669239"
}
shell> curl --data-binary @- --dump - http://localhost:8529/_api/document/products/1540135935
shell> curl --data-binary @- --dump - http://localhost:8529/_api/document/products/1529669239
HTTP/1.1 200 OK
content-type: application/json; charset=utf-8
etag: "1541118975"
etag: "1530652279"
{
"inhabitants" : {
"pakistan" : 188346000
},
"_id" : "products/1540135935",
"_rev" : "1541118975",
"_key" : "1540135935"
"_id" : "products/1529669239",
"_rev" : "1530652279",
"_key" : "1529669239"
}

View File

@ -3,12 +3,12 @@ shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/documen
HTTP/1.1 202 Accepted
content-type: application/json; charset=utf-8
etag: "1526897663"
location: /_db/_system/_api/document/products/1526897663
etag: "1516365431"
location: /_db/_system/_api/document/products/1516365431
{
"error" : false,
"_id" : "products/1526897663",
"_rev" : "1526897663",
"_key" : "1526897663"
"_id" : "products/1516365431",
"_rev" : "1516365431",
"_key" : "1516365431"
}

View File

@ -0,0 +1,12 @@
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/document?collection=products
{ 1: "World" }
HTTP/1.1 400 Bad Request
content-type: application/json; charset=utf-8
{
"error" : true,
"errorMessage" : "expecting attribute name",
"code" : 400,
"errorNum" : 600
}

View File

@ -3,12 +3,12 @@ shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/documen
HTTP/1.1 201 Created
content-type: application/json; charset=utf-8
etag: "1526373375"
location: /_db/_system/_api/document/products/1526373375
etag: "1515841143"
location: /_db/_system/_api/document/products/1515841143
{
"error" : false,
"_id" : "products/1526373375",
"_rev" : "1526373375",
"_key" : "1526373375"
"_id" : "products/1515841143",
"_rev" : "1515841143",
"_key" : "1515841143"
}

View File

@ -3,12 +3,12 @@ shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/documen
HTTP/1.1 202 Accepted
content-type: application/json; charset=utf-8
etag: "1527946239"
location: /_db/_system/_api/document/products/1527946239
etag: "1517414007"
location: /_db/_system/_api/document/products/1517414007
{
"error" : false,
"_id" : "products/1527946239",
"_rev" : "1527946239",
"_key" : "1527946239"
"_id" : "products/1517414007",
"_rev" : "1517414007",
"_key" : "1517414007"
}

View File

@ -0,0 +1,12 @@
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/document?collection=products
{ "Hello": "World" }
HTTP/1.1 404 Not Found
content-type: application/json; charset=utf-8
{
"error" : true,
"errorMessage" : "collection 'products' not found",
"code" : 404,
"errorNum" : 1203
}

View File

@ -3,12 +3,12 @@ shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/documen
HTTP/1.1 201 Created
content-type: application/json; charset=utf-8
etag: "1527421951"
location: /_db/_system/_api/document/products/1527421951
etag: "1516889719"
location: /_db/_system/_api/document/products/1516889719
{
"error" : false,
"_id" : "products/1527421951",
"_rev" : "1527421951",
"_key" : "1527421951"
"_id" : "products/1516889719",
"_rev" : "1516889719",
"_key" : "1516889719"
}

View File

@ -1,12 +1,12 @@
shell> curl --data-binary @- --dump - http://localhost:8529/_api/document/products/1528470527
shell> curl --data-binary @- --dump - http://localhost:8529/_api/document/products/1517938295
HTTP/1.1 200 OK
content-type: application/json; charset=utf-8
etag: "1528470527"
etag: "1517938295"
{
"hello" : "world",
"_id" : "products/1528470527",
"_rev" : "1528470527",
"_key" : "1528470527"
"_id" : "products/1517938295",
"_rev" : "1517938295",
"_key" : "1517938295"
}

View File

@ -0,0 +1,11 @@
shell> curl --data-binary @- --dump - http://localhost:8529/_api/document/?collection=doesnotexist
HTTP/1.1 404 Not Found
content-type: application/json; charset=utf-8
{
"error" : true,
"errorMessage" : "collection 'doesnotexist' not found",
"code" : 404,
"errorNum" : 1203
}

View File

@ -5,8 +5,8 @@ content-type: application/json; charset=utf-8
{
"documents" : [
"1530960895",
"1531288575",
"1531616255"
"1520756343",
"1521084023",
"1520428663"
]
}

View File

@ -5,8 +5,8 @@ content-type: application/json; charset=utf-8
{
"documents" : [
"/_api/document/products/1530043391",
"/_api/document/products/1529715711",
"/_api/document/products/1530371071"
"/_api/document/products/1519511159",
"/_api/document/products/1519183479",
"/_api/document/products/1519838839"
]
}

View File

@ -1,2 +1,2 @@
shell> curl -X HEAD --data-binary @- --dump - http://localhost:8529/_api/document/products/1532206079
shell> curl -X HEAD --data-binary @- --dump - http://localhost:8529/_api/document/products/1521673847

View File

@ -1,2 +1,2 @@
shell> curl --header 'If-None-Match: "1529060351"' --dump - http://localhost:8529/_api/document/products/1529060351
shell> curl --header 'If-None-Match: "1518528119"' --dump - http://localhost:8529/_api/document/products/1518528119

View File

@ -0,0 +1,11 @@
shell> curl --data-binary @- --dump - http://localhost:8529/_api/document/products/unknownhandle
HTTP/1.1 404 Not Found
content-type: application/json; charset=utf-8
{
"error" : true,
"errorMessage" : "document /_api/document/products/unknownhandle not found",
"code" : 404,
"errorNum" : 1202
}

View File

@ -1,14 +1,14 @@
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/document/products/1532795903
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/document/products/1522263671
{"Hello": "you"}
HTTP/1.1 202 Accepted
content-type: application/json; charset=utf-8
etag: "1533123583"
location: /_db/_system/_api/document/products/1532795903
etag: "1522591351"
location: /_db/_system/_api/document/products/1522263671
{
"error" : false,
"_id" : "products/1532795903",
"_rev" : "1533123583",
"_key" : "1532795903"
"_id" : "products/1522263671",
"_rev" : "1522591351",
"_key" : "1522263671"
}

View File

@ -1,16 +1,16 @@
shell> curl -X PUT --header 'If-Match: "1534893055"' --data-binary @- --dump - http://localhost:8529/_api/document/products/1534565375
shell> curl -X PUT --header 'If-Match: "1524360823"' --data-binary @- --dump - http://localhost:8529/_api/document/products/1524033143
{"other":"content"}
HTTP/1.1 412 Precondition Failed
content-type: application/json; charset=utf-8
etag: "1534565375"
etag: "1524033143"
{
"error" : true,
"code" : 412,
"errorNum" : 1200,
"errorMessage" : "precondition failed",
"_id" : "products/1534565375",
"_rev" : "1534565375",
"_key" : "1534565375"
"_id" : "products/1524033143",
"_rev" : "1524033143",
"_key" : "1524033143"
}

View File

@ -1,14 +1,14 @@
shell> curl -X PUT --header 'If-Match: "1536007167"' --data-binary @- --dump - http://localhost:8529/_api/document/products/1535679487?policy=last
shell> curl -X PUT --header 'If-Match: "1525540471"' --data-binary @- --dump - http://localhost:8529/_api/document/products/1525147255?policy=last
{}
HTTP/1.1 202 Accepted
content-type: application/json; charset=utf-8
etag: "1536269311"
location: /_db/_system/_api/document/products/1535679487
etag: "1525802615"
location: /_db/_system/_api/document/products/1525147255
{
"error" : false,
"_id" : "products/1535679487",
"_rev" : "1536269311",
"_key" : "1535679487"
"_id" : "products/1525147255",
"_rev" : "1525802615",
"_key" : "1525147255"
}

View File

@ -1,16 +1,16 @@
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/document/products/1536793599?rev=1537121279
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/document/products/1526326903?rev=1526654583
{"other":"content"}
HTTP/1.1 412 Precondition Failed
content-type: application/json; charset=utf-8
etag: "1536793599"
etag: "1526326903"
{
"error" : true,
"code" : 412,
"errorNum" : 1200,
"errorMessage" : "precondition failed",
"_id" : "products/1536793599",
"_rev" : "1536793599",
"_key" : "1536793599"
"_id" : "products/1526326903",
"_rev" : "1526326903",
"_key" : "1526326903"
}

View File

@ -1,4 +1,4 @@
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/document/products/1533647871
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/document/products/1523115639
{}
HTTP/1.1 404 Not Found
@ -6,7 +6,7 @@ content-type: application/json; charset=utf-8
{
"error" : true,
"errorMessage" : "document /_api/document/products/1533647871 not found",
"errorMessage" : "document /_api/document/products/1523115639 not found",
"code" : 404,
"errorNum" : 1202
}

View File

@ -5,26 +5,26 @@ shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/edge/?c
HTTP/1.1 202 Accepted
content-type: application/json; charset=utf-8
etag: "1545903103"
location: /_db/_system/_api/document/edges/1545903103
etag: "1535436407"
location: /_db/_system/_api/document/edges/1535436407
{
"error" : false,
"_id" : "edges/1545903103",
"_rev" : "1545903103",
"_key" : "1545903103"
"_id" : "edges/1535436407",
"_rev" : "1535436407",
"_key" : "1535436407"
}
shell> curl --data-binary @- --dump - http://localhost:8529/_api/edge/edges/1545903103
shell> curl --data-binary @- --dump - http://localhost:8529/_api/edge/edges/1535436407
HTTP/1.1 200 OK
content-type: application/json; charset=utf-8
etag: "1545903103"
etag: "1535436407"
{
"name" : "Emil",
"_id" : "edges/1545903103",
"_rev" : "1545903103",
"_key" : "1545903103",
"_id" : "edges/1535436407",
"_rev" : "1535436407",
"_key" : "1535436407",
"_from" : "vertices/1",
"_to" : "vertices/2"
}

View File

@ -8,7 +8,7 @@ content-type: application/json; charset=utf-8
{
"_id" : "edges/6",
"_key" : "6",
"_rev" : "1151441919",
"_rev" : "1150215799",
"_from" : "vertices/2",
"_to" : "vertices/1",
"$label" : "v2 -> v1"
@ -16,7 +16,7 @@ content-type: application/json; charset=utf-8
{
"_id" : "edges/7",
"_key" : "7",
"_rev" : "1151966207",
"_rev" : "1150740087",
"_from" : "vertices/4",
"_to" : "vertices/1",
"$label" : "v4 -> v1"
@ -24,7 +24,7 @@ content-type: application/json; charset=utf-8
{
"_id" : "edges/5",
"_key" : "5",
"_rev" : "1150917631",
"_rev" : "1149691511",
"_from" : "vertices/1",
"_to" : "vertices/3",
"$label" : "v1 -> v3"

View File

@ -8,7 +8,7 @@ content-type: application/json; charset=utf-8
{
"_id" : "edges/6",
"_key" : "6",
"_rev" : "1156160511",
"_rev" : "1154934391",
"_from" : "vertices/2",
"_to" : "vertices/1",
"$label" : "v2 -> v1"
@ -16,7 +16,7 @@ content-type: application/json; charset=utf-8
{
"_id" : "edges/7",
"_key" : "7",
"_rev" : "1156684799",
"_rev" : "1155458679",
"_from" : "vertices/4",
"_to" : "vertices/1",
"$label" : "v4 -> v1"

View File

@ -8,7 +8,7 @@ content-type: application/json; charset=utf-8
{
"_id" : "edges/5",
"_key" : "5",
"_rev" : "1160354815",
"_rev" : "1159128695",
"_from" : "vertices/1",
"_to" : "vertices/3",
"$label" : "v1 -> v3"

View File

@ -0,0 +1,10 @@
shell> curl -X DELETE --data-binary @- --dump - http://localhost:8529/_api/endpoint/tcp%3A%2F%2F127.0.0.1%3A8532
HTTP/1.1 200 OK
content-type: application/json; charset=utf-8
{
"result" : true,
"error" : false,
"code" : 200
}

View File

@ -0,0 +1,11 @@
shell> curl -X DELETE --data-binary @- --dump - http://localhost:8529/_api/endpoint/tcp%3A%2F%2F127.0.0.1%3A8532
HTTP/1.1 404 Not Found
content-type: application/json; charset=utf-8
{
"error" : true,
"code" : 404,
"errorNum" : 1231,
"errorMessage" : "endpoint not found"
}

View File

@ -5,7 +5,7 @@ content-type: application/json; charset=utf-8
[
{
"endpoint" : "tcp://127.0.0.1:34699",
"endpoint" : "tcp://127.0.0.1:31230",
"databases" : [ ]
},
{

Some files were not shown because too many files have changed in this diff Show More