mirror of https://gitee.com/bigwinds/arangodb
release version 2.5.0-alpha1
This commit is contained in:
parent
205736a028
commit
179a6ef8ff
|
@ -1,4 +1,4 @@
|
||||||
v2.5.0 (XXXX-XX-XX)
|
v2.5.0-alpha1 (2015-02-16)
|
||||||
-------------------
|
-------------------
|
||||||
|
|
||||||
* added optimizer rule `propagate-constant-attributes`
|
* added optimizer rule `propagate-constant-attributes`
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
arangosh> col = db.example;
|
||||||
|
[ArangoCollection 962934488, "example" (type document, status loaded)]
|
||||||
|
arangosh> col.unload();
|
||||||
|
arangosh> col;
|
||||||
|
[ArangoCollection 962934488, "example" (type document, status unloaded)]
|
|
@ -0,0 +1,20 @@
|
||||||
|
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/gharial/social/edge/relation
|
||||||
|
{
|
||||||
|
"type" : "friend",
|
||||||
|
"_from" : "female/alice",
|
||||||
|
"_to" : "female/diana"
|
||||||
|
}
|
||||||
|
|
||||||
|
HTTP/1.1 202 Accepted
|
||||||
|
content-type: application/json
|
||||||
|
etag: 1568487128
|
||||||
|
|
||||||
|
{
|
||||||
|
"error" : false,
|
||||||
|
"code" : 202,
|
||||||
|
"edge" : {
|
||||||
|
"_id" : "relation/1568487128",
|
||||||
|
"_rev" : "1568487128",
|
||||||
|
"_key" : "1568487128"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,49 @@
|
||||||
|
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/gharial/social/edge
|
||||||
|
{
|
||||||
|
"collection" : "lives_in",
|
||||||
|
"from" : [
|
||||||
|
"female",
|
||||||
|
"male"
|
||||||
|
],
|
||||||
|
"to" : [
|
||||||
|
"city"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
HTTP/1.1 201 Created
|
||||||
|
content-type: application/json
|
||||||
|
etag: 1529165528
|
||||||
|
|
||||||
|
{
|
||||||
|
"error" : false,
|
||||||
|
"code" : 201,
|
||||||
|
"graph" : {
|
||||||
|
"name" : "social",
|
||||||
|
"edgeDefinitions" : [
|
||||||
|
{
|
||||||
|
"collection" : "relation",
|
||||||
|
"from" : [
|
||||||
|
"female",
|
||||||
|
"male"
|
||||||
|
],
|
||||||
|
"to" : [
|
||||||
|
"female",
|
||||||
|
"male"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"collection" : "lives_in",
|
||||||
|
"from" : [
|
||||||
|
"female",
|
||||||
|
"male"
|
||||||
|
],
|
||||||
|
"to" : [
|
||||||
|
"city"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"orphanCollections" : [ ],
|
||||||
|
"_id" : "_graphs/social",
|
||||||
|
"_rev" : "1529165528"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,18 @@
|
||||||
|
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/gharial/social/vertex/male
|
||||||
|
{
|
||||||
|
"name" : "Francis"
|
||||||
|
}
|
||||||
|
|
||||||
|
HTTP/1.1 202 Accepted
|
||||||
|
content-type: application/json
|
||||||
|
etag: 1545877208
|
||||||
|
|
||||||
|
{
|
||||||
|
"error" : false,
|
||||||
|
"code" : 202,
|
||||||
|
"vertex" : {
|
||||||
|
"_id" : "male/1545877208",
|
||||||
|
"_rev" : "1545877208",
|
||||||
|
"_key" : "1545877208"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,34 @@
|
||||||
|
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/gharial/social/vertex
|
||||||
|
{
|
||||||
|
"collection" : "otherVertices"
|
||||||
|
}
|
||||||
|
|
||||||
|
HTTP/1.1 201 Created
|
||||||
|
content-type: application/json
|
||||||
|
etag: 1490958040
|
||||||
|
|
||||||
|
{
|
||||||
|
"error" : false,
|
||||||
|
"code" : 201,
|
||||||
|
"graph" : {
|
||||||
|
"name" : "social",
|
||||||
|
"edgeDefinitions" : [
|
||||||
|
{
|
||||||
|
"collection" : "relation",
|
||||||
|
"from" : [
|
||||||
|
"female",
|
||||||
|
"male"
|
||||||
|
],
|
||||||
|
"to" : [
|
||||||
|
"female",
|
||||||
|
"male"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"orphanCollections" : [
|
||||||
|
"otherVertices"
|
||||||
|
],
|
||||||
|
"_id" : "_graphs/social",
|
||||||
|
"_rev" : "1490958040"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,41 @@
|
||||||
|
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/gharial
|
||||||
|
{
|
||||||
|
"name" : "myGraph",
|
||||||
|
"edgeDefinitions" : [
|
||||||
|
{
|
||||||
|
"collection" : "edges",
|
||||||
|
"from" : [
|
||||||
|
"startVertices"
|
||||||
|
],
|
||||||
|
"to" : [
|
||||||
|
"endVertices"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
HTTP/1.1 201 Created
|
||||||
|
content-type: application/json
|
||||||
|
etag: 1478768344
|
||||||
|
|
||||||
|
{
|
||||||
|
"error" : false,
|
||||||
|
"code" : 201,
|
||||||
|
"graph" : {
|
||||||
|
"name" : "myGraph",
|
||||||
|
"edgeDefinitions" : [
|
||||||
|
{
|
||||||
|
"collection" : "edges",
|
||||||
|
"from" : [
|
||||||
|
"startVertices"
|
||||||
|
],
|
||||||
|
"to" : [
|
||||||
|
"endVertices"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"orphanCollections" : [ ],
|
||||||
|
"_id" : "_graphs/myGraph",
|
||||||
|
"_rev" : "1478768344"
|
||||||
|
}
|
||||||
|
}
|
|
@ -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
|
||||||
|
}
|
|
@ -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
|
||||||
|
}
|
|
@ -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
|
||||||
|
}
|
|
@ -0,0 +1,20 @@
|
||||||
|
shell> curl -X DELETE --data-binary @- --dump - http://localhost:8529/_api/gharial/social/edge/relation
|
||||||
|
|
||||||
|
HTTP/1.1 200 OK
|
||||||
|
content-type: application/json
|
||||||
|
etag: 1539061464
|
||||||
|
|
||||||
|
{
|
||||||
|
"error" : false,
|
||||||
|
"code" : 200,
|
||||||
|
"graph" : {
|
||||||
|
"name" : "social",
|
||||||
|
"edgeDefinitions" : [ ],
|
||||||
|
"orphanCollections" : [
|
||||||
|
"female",
|
||||||
|
"male"
|
||||||
|
],
|
||||||
|
"_id" : "_graphs/social",
|
||||||
|
"_rev" : "1539061464"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,18 @@
|
||||||
|
shell> curl --data-binary @- --dump - http://localhost:8529/_api/gharial/social/edge/relation/aliceAndBob
|
||||||
|
|
||||||
|
HTTP/1.1 200 OK
|
||||||
|
content-type: application/json
|
||||||
|
etag: 1571501784
|
||||||
|
|
||||||
|
{
|
||||||
|
"error" : false,
|
||||||
|
"code" : 200,
|
||||||
|
"edge" : {
|
||||||
|
"_id" : "relation/aliceAndBob",
|
||||||
|
"_key" : "aliceAndBob",
|
||||||
|
"_rev" : "1571501784",
|
||||||
|
"_from" : "female/alice",
|
||||||
|
"_to" : "male/bob",
|
||||||
|
"type" : "married"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,27 @@
|
||||||
|
shell> curl --data-binary @- --dump - http://localhost:8529/_api/gharial/myGraph
|
||||||
|
|
||||||
|
HTTP/1.1 200 OK
|
||||||
|
content-type: application/json
|
||||||
|
etag: 1480406744
|
||||||
|
|
||||||
|
{
|
||||||
|
"error" : false,
|
||||||
|
"code" : 200,
|
||||||
|
"graph" : {
|
||||||
|
"name" : "myGraph",
|
||||||
|
"edgeDefinitions" : [
|
||||||
|
{
|
||||||
|
"collection" : "edges",
|
||||||
|
"from" : [
|
||||||
|
"startVertices"
|
||||||
|
],
|
||||||
|
"to" : [
|
||||||
|
"endVertices"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"orphanCollections" : [ ],
|
||||||
|
"_id" : "_graphs/myGraph",
|
||||||
|
"_rev" : "1480406744"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
shell> curl --data-binary @- --dump - http://localhost:8529/_api/gharial/social/vertex/female/alice
|
||||||
|
|
||||||
|
HTTP/1.1 200 OK
|
||||||
|
content-type: application/json
|
||||||
|
etag: 1547908824
|
||||||
|
|
||||||
|
{
|
||||||
|
"error" : false,
|
||||||
|
"code" : 200,
|
||||||
|
"vertex" : {
|
||||||
|
"_id" : "female/alice",
|
||||||
|
"_key" : "alice",
|
||||||
|
"_rev" : "1547908824",
|
||||||
|
"name" : "Alice"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,67 @@
|
||||||
|
shell> curl --data-binary @- --dump - http://localhost:8529/_api/gharial
|
||||||
|
|
||||||
|
HTTP/1.1 200 OK
|
||||||
|
content-type: application/json
|
||||||
|
|
||||||
|
{
|
||||||
|
"error" : false,
|
||||||
|
"code" : 202,
|
||||||
|
"graphs" : [
|
||||||
|
{
|
||||||
|
"_id" : "_graphs/social",
|
||||||
|
"_key" : "social",
|
||||||
|
"_rev" : "1449080536",
|
||||||
|
"edgeDefinitions" : [
|
||||||
|
{
|
||||||
|
"collection" : "relation",
|
||||||
|
"from" : [
|
||||||
|
"female",
|
||||||
|
"male"
|
||||||
|
],
|
||||||
|
"to" : [
|
||||||
|
"female",
|
||||||
|
"male"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"orphanCollections" : [ ]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"_id" : "_graphs/routeplanner",
|
||||||
|
"_key" : "routeplanner",
|
||||||
|
"_rev" : "1453405912",
|
||||||
|
"orphanCollections" : [ ],
|
||||||
|
"edgeDefinitions" : [
|
||||||
|
{
|
||||||
|
"collection" : "germanHighway",
|
||||||
|
"from" : [
|
||||||
|
"germanCity"
|
||||||
|
],
|
||||||
|
"to" : [
|
||||||
|
"germanCity"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"collection" : "frenchHighway",
|
||||||
|
"from" : [
|
||||||
|
"frenchCity"
|
||||||
|
],
|
||||||
|
"to" : [
|
||||||
|
"frenchCity"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"collection" : "internationalHighway",
|
||||||
|
"from" : [
|
||||||
|
"frenchCity",
|
||||||
|
"germanCity"
|
||||||
|
],
|
||||||
|
"to" : [
|
||||||
|
"frenchCity",
|
||||||
|
"germanCity"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
|
@ -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"
|
||||||
|
]
|
||||||
|
}
|
|
@ -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"
|
||||||
|
]
|
||||||
|
}
|
|
@ -0,0 +1,19 @@
|
||||||
|
shell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/gharial/social/vertex/female/alice
|
||||||
|
{
|
||||||
|
"age" : 26
|
||||||
|
}
|
||||||
|
|
||||||
|
HTTP/1.1 202 Accepted
|
||||||
|
content-type: application/json
|
||||||
|
etag: 1559115480
|
||||||
|
|
||||||
|
{
|
||||||
|
"error" : false,
|
||||||
|
"code" : 202,
|
||||||
|
"vertex" : {
|
||||||
|
"_id" : "female/alice",
|
||||||
|
"_rev" : "1559115480",
|
||||||
|
"_oldRev" : "1556625112",
|
||||||
|
"_key" : "alice"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,19 @@
|
||||||
|
shell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/gharial/social/edge/relation/aliceAndBob
|
||||||
|
{
|
||||||
|
"since" : "01.01.2001"
|
||||||
|
}
|
||||||
|
|
||||||
|
HTTP/1.1 202 Accepted
|
||||||
|
content-type: application/json
|
||||||
|
etag: 1581397720
|
||||||
|
|
||||||
|
{
|
||||||
|
"error" : false,
|
||||||
|
"code" : 202,
|
||||||
|
"edge" : {
|
||||||
|
"_id" : "relation/aliceAndBob",
|
||||||
|
"_rev" : "1581397720",
|
||||||
|
"_oldRev" : "1579955928",
|
||||||
|
"_key" : "aliceAndBob"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,19 @@
|
||||||
|
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/gharial/social/edge/relation/aliceAndBob
|
||||||
|
{
|
||||||
|
"type" : "divorced"
|
||||||
|
}
|
||||||
|
|
||||||
|
HTTP/1.1 202 Accepted
|
||||||
|
content-type: application/json
|
||||||
|
etag: 1576941272
|
||||||
|
|
||||||
|
{
|
||||||
|
"error" : false,
|
||||||
|
"code" : 202,
|
||||||
|
"edge" : {
|
||||||
|
"_id" : "relation/aliceAndBob",
|
||||||
|
"_rev" : "1576941272",
|
||||||
|
"_oldRev" : "1575630552",
|
||||||
|
"_key" : "aliceAndBob"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,29 @@
|
||||||
|
shell> curl -X DELETE --data-binary @- --dump - http://localhost:8529/_api/gharial/social/vertex/otherVertices
|
||||||
|
|
||||||
|
HTTP/1.1 200 OK
|
||||||
|
content-type: application/json
|
||||||
|
etag: 1497970392
|
||||||
|
|
||||||
|
{
|
||||||
|
"error" : false,
|
||||||
|
"code" : 200,
|
||||||
|
"graph" : {
|
||||||
|
"name" : "social",
|
||||||
|
"edgeDefinitions" : [
|
||||||
|
{
|
||||||
|
"collection" : "relation",
|
||||||
|
"from" : [
|
||||||
|
"female",
|
||||||
|
"male"
|
||||||
|
],
|
||||||
|
"to" : [
|
||||||
|
"female",
|
||||||
|
"male"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"orphanCollections" : [ ],
|
||||||
|
"_id" : "_graphs/social",
|
||||||
|
"_rev" : "1497970392"
|
||||||
|
}
|
||||||
|
}
|
|
@ -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"
|
||||||
|
}
|
|
@ -0,0 +1,44 @@
|
||||||
|
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/gharial/social/edge/relation
|
||||||
|
{
|
||||||
|
"collection" : "relation",
|
||||||
|
"from" : [
|
||||||
|
"female",
|
||||||
|
"male",
|
||||||
|
"animal"
|
||||||
|
],
|
||||||
|
"to" : [
|
||||||
|
"female",
|
||||||
|
"male",
|
||||||
|
"animal"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
HTTP/1.1 200 OK
|
||||||
|
content-type: application/json
|
||||||
|
etag: 1534211800
|
||||||
|
|
||||||
|
{
|
||||||
|
"error" : false,
|
||||||
|
"code" : 200,
|
||||||
|
"graph" : {
|
||||||
|
"name" : "social",
|
||||||
|
"edgeDefinitions" : [
|
||||||
|
{
|
||||||
|
"collection" : "relation",
|
||||||
|
"from" : [
|
||||||
|
"animal",
|
||||||
|
"female",
|
||||||
|
"male"
|
||||||
|
],
|
||||||
|
"to" : [
|
||||||
|
"animal",
|
||||||
|
"female",
|
||||||
|
"male"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"orphanCollections" : [ ],
|
||||||
|
"_id" : "_graphs/social",
|
||||||
|
"_rev" : "1534211800"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,20 @@
|
||||||
|
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/gharial/social/vertex/female/alice
|
||||||
|
{
|
||||||
|
"name" : "Alice Cooper",
|
||||||
|
"age" : 26
|
||||||
|
}
|
||||||
|
|
||||||
|
HTTP/1.1 202 Accepted
|
||||||
|
content-type: application/json
|
||||||
|
etag: 1554593496
|
||||||
|
|
||||||
|
{
|
||||||
|
"error" : false,
|
||||||
|
"code" : 202,
|
||||||
|
"vertex" : {
|
||||||
|
"_id" : "female/alice",
|
||||||
|
"_rev" : "1554593496",
|
||||||
|
"_oldRev" : "1552103128",
|
||||||
|
"_key" : "alice"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,125 @@
|
||||||
|
shell> curl --data-binary @- --dump - http://localhost:8529/_admin/statistics
|
||||||
|
|
||||||
|
HTTP/1.1 200 OK
|
||||||
|
content-type: application/json; charset=utf-8
|
||||||
|
|
||||||
|
{
|
||||||
|
"time" : 1424077131.189959,
|
||||||
|
"system" : {
|
||||||
|
"minorPageFaults" : 61970,
|
||||||
|
"majorPageFaults" : 2966,
|
||||||
|
"userTime" : 9.014113,
|
||||||
|
"systemTime" : 4.769111,
|
||||||
|
"numberOfThreads" : 28,
|
||||||
|
"residentSize" : 129142784,
|
||||||
|
"residentSizePercent" : 0.030068397521972656,
|
||||||
|
"virtualSize" : 5196730368
|
||||||
|
},
|
||||||
|
"client" : {
|
||||||
|
"httpConnections" : 1,
|
||||||
|
"connectionTime" : {
|
||||||
|
"sum" : 0.0014889240264892578,
|
||||||
|
"count" : 1,
|
||||||
|
"counts" : [
|
||||||
|
1,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"totalTime" : {
|
||||||
|
"sum" : 26.739400625228882,
|
||||||
|
"count" : 10352,
|
||||||
|
"counts" : [
|
||||||
|
9798,
|
||||||
|
495,
|
||||||
|
31,
|
||||||
|
21,
|
||||||
|
2,
|
||||||
|
4,
|
||||||
|
1
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"requestTime" : {
|
||||||
|
"sum" : 25.019429683685303,
|
||||||
|
"count" : 10352,
|
||||||
|
"counts" : [
|
||||||
|
9799,
|
||||||
|
495,
|
||||||
|
31,
|
||||||
|
21,
|
||||||
|
1,
|
||||||
|
4,
|
||||||
|
1
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"queueTime" : {
|
||||||
|
"sum" : 0.24812078475952148,
|
||||||
|
"count" : 10352,
|
||||||
|
"counts" : [
|
||||||
|
10352,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"ioTime" : {
|
||||||
|
"sum" : 1.4718501567840576,
|
||||||
|
"count" : 10352,
|
||||||
|
"counts" : [
|
||||||
|
10351,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
1,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"bytesSent" : {
|
||||||
|
"sum" : 3797175,
|
||||||
|
"count" : 10352,
|
||||||
|
"counts" : [
|
||||||
|
2677,
|
||||||
|
7517,
|
||||||
|
18,
|
||||||
|
10,
|
||||||
|
130,
|
||||||
|
0
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"bytesReceived" : {
|
||||||
|
"sum" : 2244871,
|
||||||
|
"count" : 10352,
|
||||||
|
"counts" : [
|
||||||
|
8546,
|
||||||
|
1806,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"http" : {
|
||||||
|
"requestsTotal" : 10353,
|
||||||
|
"requestsAsync" : 0,
|
||||||
|
"requestsGet" : 3695,
|
||||||
|
"requestsHead" : 297,
|
||||||
|
"requestsPost" : 4662,
|
||||||
|
"requestsPut" : 695,
|
||||||
|
"requestsPatch" : 31,
|
||||||
|
"requestsDelete" : 973,
|
||||||
|
"requestsOptions" : 0,
|
||||||
|
"requestsOther" : 0
|
||||||
|
},
|
||||||
|
"server" : {
|
||||||
|
"uptime" : 36.588233947753906,
|
||||||
|
"physicalMemory" : 4294967296
|
||||||
|
},
|
||||||
|
"error" : false,
|
||||||
|
"code" : 200
|
||||||
|
}
|
|
@ -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
|
||||||
|
}
|
|
@ -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
|
||||||
|
}
|
|
@ -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
|
||||||
|
}
|
|
@ -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"
|
||||||
|
}
|
|
@ -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
|
||||||
|
|
||||||
|
[ ]
|
|
@ -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--"
|
|
@ -0,0 +1,40 @@
|
||||||
|
shell> curl -X POST --header 'Content-Type: multipart/form-data; boundary=SomeBoundaryValue' --data-binary @- --dump - http://localhost:8529/_api/batch
|
||||||
|
--SomeBoundaryValue
|
||||||
|
Content-Type: application/x-arango-batchpart
|
||||||
|
Content-Id: myId1
|
||||||
|
|
||||||
|
GET /_api/version HTTP/1.1
|
||||||
|
|
||||||
|
--SomeBoundaryValue
|
||||||
|
Content-Type: application/x-arango-batchpart
|
||||||
|
Content-Id: myId2
|
||||||
|
|
||||||
|
DELETE /_api/collection/products HTTP/1.1
|
||||||
|
|
||||||
|
--SomeBoundaryValue
|
||||||
|
Content-Type: application/x-arango-batchpart
|
||||||
|
Content-Id: someId
|
||||||
|
|
||||||
|
POST /_api/collection/products HTTP/1.1
|
||||||
|
|
||||||
|
{ "name": "products" }
|
||||||
|
|
||||||
|
--SomeBoundaryValue
|
||||||
|
Content-Type: application/x-arango-batchpart
|
||||||
|
Content-Id: nextId
|
||||||
|
|
||||||
|
GET /_api/collection/products/figures HTTP/1.1
|
||||||
|
|
||||||
|
--SomeBoundaryValue
|
||||||
|
Content-Type: application/x-arango-batchpart
|
||||||
|
Content-Id: otherId
|
||||||
|
|
||||||
|
DELETE /_api/collection/products HTTP/1.1
|
||||||
|
--SomeBoundaryValue--
|
||||||
|
|
||||||
|
|
||||||
|
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-alpha1\"}\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\":\"1586116312\",\"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\":\"1586116312\",\"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\":\"1586116312\",\"error\":false,\"code\":200}\r\n--SomeBoundaryValue--"
|
|
@ -0,0 +1,36 @@
|
||||||
|
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/collection
|
||||||
|
{"name":"testCollectionBasics"}
|
||||||
|
|
||||||
|
HTTP/1.1 200 OK
|
||||||
|
content-type: application/json; charset=utf-8
|
||||||
|
location: /_db/_system/_api/collection/testCollectionBasics
|
||||||
|
|
||||||
|
{
|
||||||
|
"id" : "1106327256",
|
||||||
|
"name" : "testCollectionBasics",
|
||||||
|
"waitForSync" : false,
|
||||||
|
"isVolatile" : false,
|
||||||
|
"isSystem" : false,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 2,
|
||||||
|
"error" : false,
|
||||||
|
"code" : 200
|
||||||
|
}
|
||||||
|
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/collection
|
||||||
|
{"name":"testCollectionEdges","type":3}
|
||||||
|
|
||||||
|
HTTP/1.1 200 OK
|
||||||
|
content-type: application/json; charset=utf-8
|
||||||
|
location: /_db/_system/_api/collection/testCollectionEdges
|
||||||
|
|
||||||
|
{
|
||||||
|
"id" : "1106458328",
|
||||||
|
"name" : "testCollectionEdges",
|
||||||
|
"waitForSync" : false,
|
||||||
|
"isVolatile" : false,
|
||||||
|
"isSystem" : false,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 3,
|
||||||
|
"error" : false,
|
||||||
|
"code" : 200
|
||||||
|
}
|
|
@ -0,0 +1,18 @@
|
||||||
|
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/collection
|
||||||
|
{"name":"testCollectionUsers","keyOptions":{"type":"autoincrement","increment":5,"allowUserKeys":true}}
|
||||||
|
|
||||||
|
HTTP/1.1 200 OK
|
||||||
|
content-type: application/json; charset=utf-8
|
||||||
|
location: /_db/_system/_api/collection/testCollectionUsers
|
||||||
|
|
||||||
|
{
|
||||||
|
"id" : "1106720472",
|
||||||
|
"name" : "testCollectionUsers",
|
||||||
|
"waitForSync" : false,
|
||||||
|
"isVolatile" : false,
|
||||||
|
"isSystem" : false,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 2,
|
||||||
|
"error" : false,
|
||||||
|
"code" : 200
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
shell> curl -X DELETE --data-binary @- --dump - http://localhost:8529/_api/collection/1132213976
|
||||||
|
|
||||||
|
HTTP/1.1 200 OK
|
||||||
|
content-type: application/json; charset=utf-8
|
||||||
|
|
||||||
|
{
|
||||||
|
"id" : "1132213976",
|
||||||
|
"error" : false,
|
||||||
|
"code" : 200
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
shell> curl -X DELETE --data-binary @- --dump - http://localhost:8529/_api/collection/products1
|
||||||
|
|
||||||
|
HTTP/1.1 200 OK
|
||||||
|
content-type: application/json; charset=utf-8
|
||||||
|
|
||||||
|
{
|
||||||
|
"id" : "1132410584",
|
||||||
|
"error" : false,
|
||||||
|
"code" : 200
|
||||||
|
}
|
|
@ -0,0 +1,461 @@
|
||||||
|
shell> curl --data-binary @- --dump - http://localhost:8529/_api/collection
|
||||||
|
|
||||||
|
HTTP/1.1 200 OK
|
||||||
|
content-type: application/json; charset=utf-8
|
||||||
|
|
||||||
|
{
|
||||||
|
"collections" : [
|
||||||
|
{
|
||||||
|
"id" : "1013855960",
|
||||||
|
"name" : "Electronics",
|
||||||
|
"isSystem" : false,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id" : "2569944",
|
||||||
|
"name" : "_cluster_kickstarter_plans",
|
||||||
|
"isSystem" : true,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id" : "1098331864",
|
||||||
|
"name" : "germanCity",
|
||||||
|
"isSystem" : false,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id" : "1098725080",
|
||||||
|
"name" : "frenchHighway",
|
||||||
|
"isSystem" : false,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id" : "1013331672",
|
||||||
|
"name" : "Customer",
|
||||||
|
"isSystem" : false,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id" : "1104492248",
|
||||||
|
"name" : "animals",
|
||||||
|
"isSystem" : false,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id" : "1103574744",
|
||||||
|
"name" : "demo",
|
||||||
|
"isSystem" : false,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id" : "771372760",
|
||||||
|
"name" : "better-example",
|
||||||
|
"isSystem" : false,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id" : "1013724888",
|
||||||
|
"name" : "Groceries",
|
||||||
|
"isSystem" : false,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id" : "4667096",
|
||||||
|
"name" : "_statisticsRaw",
|
||||||
|
"isSystem" : true,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id" : "2438872",
|
||||||
|
"name" : "_routing",
|
||||||
|
"isSystem" : true,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id" : "210648",
|
||||||
|
"name" : "_configuration",
|
||||||
|
"isSystem" : true,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id" : "1075066584",
|
||||||
|
"name" : "relation",
|
||||||
|
"isSystem" : false,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id" : "5060312",
|
||||||
|
"name" : "_statistics",
|
||||||
|
"isSystem" : true,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id" : "1098594008",
|
||||||
|
"name" : "frenchCity",
|
||||||
|
"isSystem" : false,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id" : "5453528",
|
||||||
|
"name" : "_statistics15",
|
||||||
|
"isSystem" : true,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id" : "1013593816",
|
||||||
|
"name" : "Company",
|
||||||
|
"isSystem" : false,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id" : "4536024",
|
||||||
|
"name" : "_aqlfunctions",
|
||||||
|
"isSystem" : true,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id" : "2307800",
|
||||||
|
"name" : "_modules",
|
||||||
|
"isSystem" : true,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id" : "6305496",
|
||||||
|
"name" : "_jobs",
|
||||||
|
"isSystem" : true,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id" : "4077272",
|
||||||
|
"name" : "_aal",
|
||||||
|
"isSystem" : true,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id" : "1074935512",
|
||||||
|
"name" : "male",
|
||||||
|
"isSystem" : false,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id" : "1013987032",
|
||||||
|
"name" : "has_bought",
|
||||||
|
"isSystem" : false,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id" : "1098462936",
|
||||||
|
"name" : "germanHighway",
|
||||||
|
"isSystem" : false,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id" : "1098856152",
|
||||||
|
"name" : "internationalHighway",
|
||||||
|
"isSystem" : false,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id" : "1013462744",
|
||||||
|
"name" : "friend_of",
|
||||||
|
"isSystem" : false,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id" : "407256",
|
||||||
|
"name" : "_users",
|
||||||
|
"isSystem" : true,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id" : "2176728",
|
||||||
|
"name" : "_graphs",
|
||||||
|
"isSystem" : true,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id" : "6174424",
|
||||||
|
"name" : "_queues",
|
||||||
|
"isSystem" : true,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id" : "817772248",
|
||||||
|
"name" : "geo",
|
||||||
|
"isSystem" : false,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id" : "26621656",
|
||||||
|
"name" : "_sessions",
|
||||||
|
"isSystem" : true,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id" : "1074804440",
|
||||||
|
"name" : "female",
|
||||||
|
"isSystem" : false,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 2
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"names" : {
|
||||||
|
"Electronics" : {
|
||||||
|
"id" : "1013855960",
|
||||||
|
"name" : "Electronics",
|
||||||
|
"isSystem" : false,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 2
|
||||||
|
},
|
||||||
|
"_cluster_kickstarter_plans" : {
|
||||||
|
"id" : "2569944",
|
||||||
|
"name" : "_cluster_kickstarter_plans",
|
||||||
|
"isSystem" : true,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 2
|
||||||
|
},
|
||||||
|
"germanCity" : {
|
||||||
|
"id" : "1098331864",
|
||||||
|
"name" : "germanCity",
|
||||||
|
"isSystem" : false,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 2
|
||||||
|
},
|
||||||
|
"frenchHighway" : {
|
||||||
|
"id" : "1098725080",
|
||||||
|
"name" : "frenchHighway",
|
||||||
|
"isSystem" : false,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 3
|
||||||
|
},
|
||||||
|
"Customer" : {
|
||||||
|
"id" : "1013331672",
|
||||||
|
"name" : "Customer",
|
||||||
|
"isSystem" : false,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 2
|
||||||
|
},
|
||||||
|
"animals" : {
|
||||||
|
"id" : "1104492248",
|
||||||
|
"name" : "animals",
|
||||||
|
"isSystem" : false,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 2
|
||||||
|
},
|
||||||
|
"demo" : {
|
||||||
|
"id" : "1103574744",
|
||||||
|
"name" : "demo",
|
||||||
|
"isSystem" : false,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 2
|
||||||
|
},
|
||||||
|
"better-example" : {
|
||||||
|
"id" : "771372760",
|
||||||
|
"name" : "better-example",
|
||||||
|
"isSystem" : false,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 2
|
||||||
|
},
|
||||||
|
"Groceries" : {
|
||||||
|
"id" : "1013724888",
|
||||||
|
"name" : "Groceries",
|
||||||
|
"isSystem" : false,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 2
|
||||||
|
},
|
||||||
|
"_statisticsRaw" : {
|
||||||
|
"id" : "4667096",
|
||||||
|
"name" : "_statisticsRaw",
|
||||||
|
"isSystem" : true,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 2
|
||||||
|
},
|
||||||
|
"_routing" : {
|
||||||
|
"id" : "2438872",
|
||||||
|
"name" : "_routing",
|
||||||
|
"isSystem" : true,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 2
|
||||||
|
},
|
||||||
|
"_configuration" : {
|
||||||
|
"id" : "210648",
|
||||||
|
"name" : "_configuration",
|
||||||
|
"isSystem" : true,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 2
|
||||||
|
},
|
||||||
|
"relation" : {
|
||||||
|
"id" : "1075066584",
|
||||||
|
"name" : "relation",
|
||||||
|
"isSystem" : false,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 3
|
||||||
|
},
|
||||||
|
"_statistics" : {
|
||||||
|
"id" : "5060312",
|
||||||
|
"name" : "_statistics",
|
||||||
|
"isSystem" : true,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 2
|
||||||
|
},
|
||||||
|
"frenchCity" : {
|
||||||
|
"id" : "1098594008",
|
||||||
|
"name" : "frenchCity",
|
||||||
|
"isSystem" : false,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 2
|
||||||
|
},
|
||||||
|
"_statistics15" : {
|
||||||
|
"id" : "5453528",
|
||||||
|
"name" : "_statistics15",
|
||||||
|
"isSystem" : true,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 2
|
||||||
|
},
|
||||||
|
"Company" : {
|
||||||
|
"id" : "1013593816",
|
||||||
|
"name" : "Company",
|
||||||
|
"isSystem" : false,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 2
|
||||||
|
},
|
||||||
|
"_aqlfunctions" : {
|
||||||
|
"id" : "4536024",
|
||||||
|
"name" : "_aqlfunctions",
|
||||||
|
"isSystem" : true,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 2
|
||||||
|
},
|
||||||
|
"_modules" : {
|
||||||
|
"id" : "2307800",
|
||||||
|
"name" : "_modules",
|
||||||
|
"isSystem" : true,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 2
|
||||||
|
},
|
||||||
|
"_jobs" : {
|
||||||
|
"id" : "6305496",
|
||||||
|
"name" : "_jobs",
|
||||||
|
"isSystem" : true,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 2
|
||||||
|
},
|
||||||
|
"_aal" : {
|
||||||
|
"id" : "4077272",
|
||||||
|
"name" : "_aal",
|
||||||
|
"isSystem" : true,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 2
|
||||||
|
},
|
||||||
|
"male" : {
|
||||||
|
"id" : "1074935512",
|
||||||
|
"name" : "male",
|
||||||
|
"isSystem" : false,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 2
|
||||||
|
},
|
||||||
|
"has_bought" : {
|
||||||
|
"id" : "1013987032",
|
||||||
|
"name" : "has_bought",
|
||||||
|
"isSystem" : false,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 3
|
||||||
|
},
|
||||||
|
"germanHighway" : {
|
||||||
|
"id" : "1098462936",
|
||||||
|
"name" : "germanHighway",
|
||||||
|
"isSystem" : false,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 3
|
||||||
|
},
|
||||||
|
"internationalHighway" : {
|
||||||
|
"id" : "1098856152",
|
||||||
|
"name" : "internationalHighway",
|
||||||
|
"isSystem" : false,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 3
|
||||||
|
},
|
||||||
|
"friend_of" : {
|
||||||
|
"id" : "1013462744",
|
||||||
|
"name" : "friend_of",
|
||||||
|
"isSystem" : false,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 3
|
||||||
|
},
|
||||||
|
"_users" : {
|
||||||
|
"id" : "407256",
|
||||||
|
"name" : "_users",
|
||||||
|
"isSystem" : true,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 2
|
||||||
|
},
|
||||||
|
"_graphs" : {
|
||||||
|
"id" : "2176728",
|
||||||
|
"name" : "_graphs",
|
||||||
|
"isSystem" : true,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 2
|
||||||
|
},
|
||||||
|
"_queues" : {
|
||||||
|
"id" : "6174424",
|
||||||
|
"name" : "_queues",
|
||||||
|
"isSystem" : true,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 2
|
||||||
|
},
|
||||||
|
"geo" : {
|
||||||
|
"id" : "817772248",
|
||||||
|
"name" : "geo",
|
||||||
|
"isSystem" : false,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 2
|
||||||
|
},
|
||||||
|
"_sessions" : {
|
||||||
|
"id" : "26621656",
|
||||||
|
"name" : "_sessions",
|
||||||
|
"isSystem" : true,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 2
|
||||||
|
},
|
||||||
|
"female" : {
|
||||||
|
"id" : "1074804440",
|
||||||
|
"name" : "female",
|
||||||
|
"isSystem" : false,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 2
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"error" : false,
|
||||||
|
"code" : 200
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
shell> curl --data-binary @- --dump - http://localhost:8529/_api/collection/products/checksum
|
||||||
|
|
||||||
|
HTTP/1.1 200 OK
|
||||||
|
content-type: application/json; charset=utf-8
|
||||||
|
|
||||||
|
{
|
||||||
|
"id" : "1128806104",
|
||||||
|
"name" : "products",
|
||||||
|
"isSystem" : false,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 2,
|
||||||
|
"checksum" : 2077498154,
|
||||||
|
"revision" : "1129133784",
|
||||||
|
"error" : false,
|
||||||
|
"code" : 200
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
shell> curl --data-binary @- --dump - http://localhost:8529/_api/collection/products/checksum?withRevisions=false&withData=true
|
||||||
|
|
||||||
|
HTTP/1.1 200 OK
|
||||||
|
content-type: application/json; charset=utf-8
|
||||||
|
|
||||||
|
{
|
||||||
|
"id" : "1129395928",
|
||||||
|
"name" : "products",
|
||||||
|
"isSystem" : false,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 2,
|
||||||
|
"checksum" : 89078093,
|
||||||
|
"revision" : "1129723608",
|
||||||
|
"error" : false,
|
||||||
|
"code" : 200
|
||||||
|
}
|
|
@ -0,0 +1,24 @@
|
||||||
|
shell> curl --data-binary @- --dump - http://localhost:8529/_api/collection/products/count
|
||||||
|
|
||||||
|
HTTP/1.1 200 OK
|
||||||
|
content-type: application/json; charset=utf-8
|
||||||
|
location: /_db/_system/_api/collection/products/count
|
||||||
|
|
||||||
|
{
|
||||||
|
"id" : "1107310296",
|
||||||
|
"name" : "products",
|
||||||
|
"isSystem" : false,
|
||||||
|
"doCompact" : true,
|
||||||
|
"isVolatile" : false,
|
||||||
|
"journalSize" : 1048576,
|
||||||
|
"keyOptions" : {
|
||||||
|
"type" : "traditional",
|
||||||
|
"allowUserKeys" : true
|
||||||
|
},
|
||||||
|
"waitForSync" : true,
|
||||||
|
"count" : 100,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 2,
|
||||||
|
"error" : false,
|
||||||
|
"code" : 200
|
||||||
|
}
|
|
@ -0,0 +1,65 @@
|
||||||
|
shell> curl --data-binary @- --dump - http://localhost:8529/_api/collection/products/figures
|
||||||
|
|
||||||
|
HTTP/1.1 200 OK
|
||||||
|
content-type: application/json; charset=utf-8
|
||||||
|
location: /_db/_system/_api/collection/products/figures
|
||||||
|
|
||||||
|
{
|
||||||
|
"id" : "1127495384",
|
||||||
|
"name" : "products",
|
||||||
|
"isSystem" : false,
|
||||||
|
"doCompact" : true,
|
||||||
|
"isVolatile" : false,
|
||||||
|
"journalSize" : 1048576,
|
||||||
|
"keyOptions" : {
|
||||||
|
"type" : "traditional",
|
||||||
|
"allowUserKeys" : true
|
||||||
|
},
|
||||||
|
"waitForSync" : false,
|
||||||
|
"count" : 1,
|
||||||
|
"figures" : {
|
||||||
|
"alive" : {
|
||||||
|
"count" : 1,
|
||||||
|
"size" : 88
|
||||||
|
},
|
||||||
|
"dead" : {
|
||||||
|
"count" : 0,
|
||||||
|
"size" : 0,
|
||||||
|
"deletion" : 0
|
||||||
|
},
|
||||||
|
"datafiles" : {
|
||||||
|
"count" : 0,
|
||||||
|
"fileSize" : 0
|
||||||
|
},
|
||||||
|
"journals" : {
|
||||||
|
"count" : 1,
|
||||||
|
"fileSize" : 1048576
|
||||||
|
},
|
||||||
|
"compactors" : {
|
||||||
|
"count" : 0,
|
||||||
|
"fileSize" : 0
|
||||||
|
},
|
||||||
|
"shapefiles" : {
|
||||||
|
"count" : 0,
|
||||||
|
"fileSize" : 0
|
||||||
|
},
|
||||||
|
"shapes" : {
|
||||||
|
"count" : 1,
|
||||||
|
"size" : 104
|
||||||
|
},
|
||||||
|
"attributes" : {
|
||||||
|
"count" : 1,
|
||||||
|
"size" : 48
|
||||||
|
},
|
||||||
|
"indexes" : {
|
||||||
|
"count" : 1,
|
||||||
|
"size" : 2008
|
||||||
|
},
|
||||||
|
"lastTick" : "1127888600",
|
||||||
|
"uncollectedLogfileEntries" : 0
|
||||||
|
},
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 2,
|
||||||
|
"error" : false,
|
||||||
|
"code" : 200
|
||||||
|
}
|
|
@ -0,0 +1,23 @@
|
||||||
|
shell> curl --data-binary @- --dump - http://localhost:8529/_api/collection/1106917080/properties
|
||||||
|
|
||||||
|
HTTP/1.1 200 OK
|
||||||
|
content-type: application/json; charset=utf-8
|
||||||
|
location: /_db/_system/_api/collection/products/properties
|
||||||
|
|
||||||
|
{
|
||||||
|
"id" : "1106917080",
|
||||||
|
"name" : "products",
|
||||||
|
"isSystem" : false,
|
||||||
|
"doCompact" : true,
|
||||||
|
"isVolatile" : false,
|
||||||
|
"journalSize" : 1048576,
|
||||||
|
"keyOptions" : {
|
||||||
|
"type" : "traditional",
|
||||||
|
"allowUserKeys" : true
|
||||||
|
},
|
||||||
|
"waitForSync" : true,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 2,
|
||||||
|
"error" : false,
|
||||||
|
"code" : 200
|
||||||
|
}
|
|
@ -0,0 +1,23 @@
|
||||||
|
shell> curl --data-binary @- --dump - http://localhost:8529/_api/collection/products/properties
|
||||||
|
|
||||||
|
HTTP/1.1 200 OK
|
||||||
|
content-type: application/json; charset=utf-8
|
||||||
|
location: /_db/_system/_api/collection/products/properties
|
||||||
|
|
||||||
|
{
|
||||||
|
"id" : "1107113688",
|
||||||
|
"name" : "products",
|
||||||
|
"isSystem" : false,
|
||||||
|
"doCompact" : true,
|
||||||
|
"isVolatile" : false,
|
||||||
|
"journalSize" : 1048576,
|
||||||
|
"keyOptions" : {
|
||||||
|
"type" : "traditional",
|
||||||
|
"allowUserKeys" : true
|
||||||
|
},
|
||||||
|
"waitForSync" : true,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 2,
|
||||||
|
"error" : false,
|
||||||
|
"code" : 200
|
||||||
|
}
|
|
@ -0,0 +1,15 @@
|
||||||
|
shell> curl --data-binary @- --dump - http://localhost:8529/_api/collection/products/revision
|
||||||
|
|
||||||
|
HTTP/1.1 200 OK
|
||||||
|
content-type: application/json; charset=utf-8
|
||||||
|
|
||||||
|
{
|
||||||
|
"id" : "1128543960",
|
||||||
|
"name" : "products",
|
||||||
|
"isSystem" : false,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 2,
|
||||||
|
"revision" : "0",
|
||||||
|
"error" : false,
|
||||||
|
"code" : 200
|
||||||
|
}
|
|
@ -0,0 +1,15 @@
|
||||||
|
shell> curl -X PUT --dump - http://localhost:8529/_api/collection/products/load
|
||||||
|
|
||||||
|
HTTP/1.1 200 OK
|
||||||
|
content-type: application/json; charset=utf-8
|
||||||
|
|
||||||
|
{
|
||||||
|
"id" : "1129985752",
|
||||||
|
"name" : "products",
|
||||||
|
"isSystem" : false,
|
||||||
|
"count" : 0,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 2,
|
||||||
|
"error" : false,
|
||||||
|
"code" : 200
|
||||||
|
}
|
|
@ -0,0 +1,25 @@
|
||||||
|
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/collection/products/properties
|
||||||
|
{
|
||||||
|
"waitForSync" : true
|
||||||
|
}
|
||||||
|
|
||||||
|
HTTP/1.1 200 OK
|
||||||
|
content-type: application/json; charset=utf-8
|
||||||
|
|
||||||
|
{
|
||||||
|
"id" : "1130706648",
|
||||||
|
"name" : "products",
|
||||||
|
"isSystem" : false,
|
||||||
|
"doCompact" : true,
|
||||||
|
"isVolatile" : false,
|
||||||
|
"journalSize" : 1048576,
|
||||||
|
"keyOptions" : {
|
||||||
|
"type" : "traditional",
|
||||||
|
"allowUserKeys" : true
|
||||||
|
},
|
||||||
|
"waitForSync" : true,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 2,
|
||||||
|
"error" : false,
|
||||||
|
"code" : 200
|
||||||
|
}
|
|
@ -0,0 +1,17 @@
|
||||||
|
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/collection/products1/rename
|
||||||
|
{
|
||||||
|
"name" : "newname"
|
||||||
|
}
|
||||||
|
|
||||||
|
HTTP/1.1 200 OK
|
||||||
|
content-type: application/json; charset=utf-8
|
||||||
|
|
||||||
|
{
|
||||||
|
"id" : "1130968792",
|
||||||
|
"name" : "newname",
|
||||||
|
"isSystem" : false,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 2,
|
||||||
|
"error" : false,
|
||||||
|
"code" : 200
|
||||||
|
}
|
|
@ -0,0 +1,14 @@
|
||||||
|
shell> curl -X PUT --dump - http://localhost:8529/_api/collection/products/truncate
|
||||||
|
|
||||||
|
HTTP/1.1 200 OK
|
||||||
|
content-type: application/json; charset=utf-8
|
||||||
|
|
||||||
|
{
|
||||||
|
"id" : "1130444504",
|
||||||
|
"name" : "products",
|
||||||
|
"isSystem" : false,
|
||||||
|
"status" : 3,
|
||||||
|
"type" : 2,
|
||||||
|
"error" : false,
|
||||||
|
"code" : 200
|
||||||
|
}
|
|
@ -0,0 +1,14 @@
|
||||||
|
shell> curl -X PUT --dump - http://localhost:8529/_api/collection/products/unload
|
||||||
|
|
||||||
|
HTTP/1.1 200 OK
|
||||||
|
content-type: application/json; charset=utf-8
|
||||||
|
|
||||||
|
{
|
||||||
|
"id" : "1130247896",
|
||||||
|
"name" : "products",
|
||||||
|
"isSystem" : false,
|
||||||
|
"status" : 4,
|
||||||
|
"type" : 2,
|
||||||
|
"error" : false,
|
||||||
|
"code" : 200
|
||||||
|
}
|
|
@ -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
|
||||||
|
}
|
|
@ -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"
|
||||||
|
}
|
|
@ -0,0 +1,36 @@
|
||||||
|
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}
|
||||||
|
|
||||||
|
HTTP/1.1 201 Created
|
||||||
|
content-type: application/json; charset=utf-8
|
||||||
|
|
||||||
|
{
|
||||||
|
"result" : [
|
||||||
|
{
|
||||||
|
"_id" : "products/1134507736",
|
||||||
|
"_key" : "1134507736",
|
||||||
|
"_rev" : "1134507736",
|
||||||
|
"hello3" : "world1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"_id" : "products/1133852376",
|
||||||
|
"_key" : "1133852376",
|
||||||
|
"_rev" : "1133852376",
|
||||||
|
"hello1" : "world1"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"hasMore" : true,
|
||||||
|
"id" : "1135359704",
|
||||||
|
"count" : 5,
|
||||||
|
"extra" : {
|
||||||
|
"stats" : {
|
||||||
|
"writesExecuted" : 0,
|
||||||
|
"writesIgnored" : 0,
|
||||||
|
"scannedFull" : 5,
|
||||||
|
"scannedIndex" : 0,
|
||||||
|
"filtered" : 0
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"error" : false,
|
||||||
|
"code" : 201
|
||||||
|
}
|
|
@ -0,0 +1,36 @@
|
||||||
|
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/cursor
|
||||||
|
{"query":"FOR p IN products LIMIT 2 RETURN p","count":true,"batchSize":2}
|
||||||
|
|
||||||
|
HTTP/1.1 201 Created
|
||||||
|
content-type: application/json; charset=utf-8
|
||||||
|
|
||||||
|
{
|
||||||
|
"result" : [
|
||||||
|
{
|
||||||
|
"_id" : "products/1133262552",
|
||||||
|
"_key" : "1133262552",
|
||||||
|
"_rev" : "1133262552",
|
||||||
|
"hello2" : "world1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"_id" : "products/1132934872",
|
||||||
|
"_key" : "1132934872",
|
||||||
|
"_rev" : "1132934872",
|
||||||
|
"hello1" : "world1"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"hasMore" : false,
|
||||||
|
"count" : 2,
|
||||||
|
"extra" : {
|
||||||
|
"stats" : {
|
||||||
|
"writesExecuted" : 0,
|
||||||
|
"writesIgnored" : 0,
|
||||||
|
"scannedFull" : 2,
|
||||||
|
"scannedIndex" : 0,
|
||||||
|
"filtered" : 0
|
||||||
|
},
|
||||||
|
"warnings" : [ ]
|
||||||
|
},
|
||||||
|
"error" : false,
|
||||||
|
"code" : 201
|
||||||
|
}
|
|
@ -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"
|
||||||
|
}
|
|
@ -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
|
||||||
|
}
|
|
@ -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)"
|
||||||
|
}
|
|
@ -0,0 +1,38 @@
|
||||||
|
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}
|
||||||
|
|
||||||
|
HTTP/1.1 201 Created
|
||||||
|
content-type: application/json; charset=utf-8
|
||||||
|
|
||||||
|
{
|
||||||
|
"result" : [
|
||||||
|
{
|
||||||
|
"_id" : "products/1140733656",
|
||||||
|
"_key" : "1140733656",
|
||||||
|
"_rev" : "1140733656",
|
||||||
|
"hello2" : "world1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"_id" : "products/1141061336",
|
||||||
|
"_key" : "1141061336",
|
||||||
|
"_rev" : "1141061336",
|
||||||
|
"hello3" : "world1"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"hasMore" : true,
|
||||||
|
"id" : "1141913304",
|
||||||
|
"count" : 5,
|
||||||
|
"extra" : {
|
||||||
|
"stats" : {
|
||||||
|
"writesExecuted" : 0,
|
||||||
|
"writesIgnored" : 0,
|
||||||
|
"scannedFull" : 5,
|
||||||
|
"scannedIndex" : 0,
|
||||||
|
"filtered" : 0
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"error" : false,
|
||||||
|
"code" : 201
|
||||||
|
}
|
||||||
|
shell> curl -X DELETE --data-binary @- --dump - http://localhost:8529/_api/cursor/1141913304
|
||||||
|
|
|
@ -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
|
||||||
|
}
|
|
@ -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
|
||||||
|
}
|
|
@ -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)"
|
||||||
|
}
|
|
@ -0,0 +1,38 @@
|
||||||
|
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/1139947224
|
||||||
|
|
||||||
|
HTTP/1.1 200 OK
|
||||||
|
content-type: application/json; charset=utf-8
|
||||||
|
|
||||||
|
{
|
||||||
|
"result" : [
|
||||||
|
{
|
||||||
|
"_id" : "products/1138767576",
|
||||||
|
"_key" : "1138767576",
|
||||||
|
"_rev" : "1138767576",
|
||||||
|
"hello2" : "world1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"_id" : "products/1139422936",
|
||||||
|
"_key" : "1139422936",
|
||||||
|
"_rev" : "1139422936",
|
||||||
|
"hello4" : "world1"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"hasMore" : true,
|
||||||
|
"id" : "1139947224",
|
||||||
|
"count" : 5,
|
||||||
|
"extra" : {
|
||||||
|
"stats" : {
|
||||||
|
"writesExecuted" : 0,
|
||||||
|
"writesIgnored" : 0,
|
||||||
|
"scannedFull" : 5,
|
||||||
|
"scannedIndex" : 0,
|
||||||
|
"filtered" : 0
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"error" : false,
|
||||||
|
"code" : 200
|
||||||
|
}
|
|
@ -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"
|
||||||
|
}
|
|
@ -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"
|
||||||
|
}
|
|
@ -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
|
||||||
|
}
|
|
@ -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
|
||||||
|
}
|
|
@ -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
|
||||||
|
}
|
|
@ -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
|
||||||
|
}
|
|
@ -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
|
||||||
|
}
|
|
@ -0,0 +1,15 @@
|
||||||
|
shell> curl --data-binary @- --dump - http://localhost:8529/_api/database/current
|
||||||
|
|
||||||
|
HTTP/1.1 200 OK
|
||||||
|
content-type: application/json; charset=utf-8
|
||||||
|
|
||||||
|
{
|
||||||
|
"result" : {
|
||||||
|
"name" : "_system",
|
||||||
|
"id" : "79576",
|
||||||
|
"path" : "/tmp/vocdir.71389/databases/database-79576",
|
||||||
|
"isSystem" : true
|
||||||
|
},
|
||||||
|
"error" : false,
|
||||||
|
"code" : 200
|
||||||
|
}
|
|
@ -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
|
||||||
|
}
|
|
@ -0,0 +1,11 @@
|
||||||
|
shell> curl -X DELETE --data-binary @- --dump - http://localhost:8529/_api/document/products/1602107096
|
||||||
|
|
||||||
|
HTTP/1.1 200 OK
|
||||||
|
content-type: application/json; charset=utf-8
|
||||||
|
|
||||||
|
{
|
||||||
|
"error" : false,
|
||||||
|
"_id" : "products/1602107096",
|
||||||
|
"_rev" : "1602107096",
|
||||||
|
"_key" : "1602107096"
|
||||||
|
}
|
|
@ -0,0 +1,15 @@
|
||||||
|
shell> curl -X DELETE --header 'If-Match: "1604007640"' --dump - http://localhost:8529/_api/document/products/1603679960
|
||||||
|
|
||||||
|
HTTP/1.1 412 Precondition Failed
|
||||||
|
content-type: application/json; charset=utf-8
|
||||||
|
etag: "1603679960"
|
||||||
|
|
||||||
|
{
|
||||||
|
"error" : true,
|
||||||
|
"code" : 412,
|
||||||
|
"errorNum" : 1200,
|
||||||
|
"errorMessage" : "precondition failed",
|
||||||
|
"_id" : "products/1603679960",
|
||||||
|
"_rev" : "1603679960",
|
||||||
|
"_key" : "1603679960"
|
||||||
|
}
|
|
@ -0,0 +1,11 @@
|
||||||
|
shell> curl -X DELETE --data-binary @- --dump - http://localhost:8529/_api/document/products/1602827992
|
||||||
|
|
||||||
|
HTTP/1.1 404 Not Found
|
||||||
|
content-type: application/json; charset=utf-8
|
||||||
|
|
||||||
|
{
|
||||||
|
"error" : true,
|
||||||
|
"errorMessage" : "document /_api/document/products/1602827992 not found",
|
||||||
|
"code" : 404,
|
||||||
|
"errorNum" : 1202
|
||||||
|
}
|
|
@ -0,0 +1,94 @@
|
||||||
|
shell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/document/products/1598306008
|
||||||
|
{
|
||||||
|
"hello" : "world"
|
||||||
|
}
|
||||||
|
|
||||||
|
HTTP/1.1 202 Accepted
|
||||||
|
content-type: application/json; charset=utf-8
|
||||||
|
etag: "1598633688"
|
||||||
|
location: /_db/_system/_api/document/products/1598306008
|
||||||
|
|
||||||
|
{
|
||||||
|
"error" : false,
|
||||||
|
"_id" : "products/1598306008",
|
||||||
|
"_rev" : "1598633688",
|
||||||
|
"_key" : "1598306008"
|
||||||
|
}
|
||||||
|
shell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/document/products/1598306008
|
||||||
|
{
|
||||||
|
"numbers" : {
|
||||||
|
"one" : 1,
|
||||||
|
"two" : 2,
|
||||||
|
"three" : 3,
|
||||||
|
"empty" : null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
HTTP/1.1 202 Accepted
|
||||||
|
content-type: application/json; charset=utf-8
|
||||||
|
etag: "1599223512"
|
||||||
|
location: /_db/_system/_api/document/products/1598306008
|
||||||
|
|
||||||
|
{
|
||||||
|
"error" : false,
|
||||||
|
"_id" : "products/1598306008",
|
||||||
|
"_rev" : "1599223512",
|
||||||
|
"_key" : "1598306008"
|
||||||
|
}
|
||||||
|
shell> curl --data-binary @- --dump - http://localhost:8529/_api/document/products/1598306008
|
||||||
|
|
||||||
|
HTTP/1.1 200 OK
|
||||||
|
content-type: application/json; charset=utf-8
|
||||||
|
etag: "1599223512"
|
||||||
|
|
||||||
|
{
|
||||||
|
"one" : "world",
|
||||||
|
"hello" : "world",
|
||||||
|
"numbers" : {
|
||||||
|
"empty" : null,
|
||||||
|
"one" : 1,
|
||||||
|
"two" : 2,
|
||||||
|
"three" : 3
|
||||||
|
},
|
||||||
|
"_id" : "products/1598306008",
|
||||||
|
"_rev" : "1599223512",
|
||||||
|
"_key" : "1598306008"
|
||||||
|
}
|
||||||
|
shell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/document/products/1598306008?keepNull=false
|
||||||
|
{
|
||||||
|
"hello" : null,
|
||||||
|
"numbers" : {
|
||||||
|
"four" : 4
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
HTTP/1.1 202 Accepted
|
||||||
|
content-type: application/json; charset=utf-8
|
||||||
|
etag: "1599682264"
|
||||||
|
location: /_db/_system/_api/document/products/1598306008
|
||||||
|
|
||||||
|
{
|
||||||
|
"error" : false,
|
||||||
|
"_id" : "products/1598306008",
|
||||||
|
"_rev" : "1599682264",
|
||||||
|
"_key" : "1598306008"
|
||||||
|
}
|
||||||
|
shell> curl --data-binary @- --dump - http://localhost:8529/_api/document/products/1598306008
|
||||||
|
|
||||||
|
HTTP/1.1 200 OK
|
||||||
|
content-type: application/json; charset=utf-8
|
||||||
|
etag: "1599682264"
|
||||||
|
|
||||||
|
{
|
||||||
|
"one" : "world",
|
||||||
|
"numbers" : {
|
||||||
|
"empty" : null,
|
||||||
|
"one" : 1,
|
||||||
|
"two" : 2,
|
||||||
|
"three" : 3,
|
||||||
|
"four" : 4
|
||||||
|
},
|
||||||
|
"_id" : "products/1598306008",
|
||||||
|
"_rev" : "1599682264",
|
||||||
|
"_key" : "1598306008"
|
||||||
|
}
|
|
@ -0,0 +1,74 @@
|
||||||
|
shell> curl --data-binary @- --dump - http://localhost:8529/_api/document/products/1600534232
|
||||||
|
|
||||||
|
HTTP/1.1 200 OK
|
||||||
|
content-type: application/json; charset=utf-8
|
||||||
|
etag: "1600534232"
|
||||||
|
|
||||||
|
{
|
||||||
|
"inhabitants" : {
|
||||||
|
"china" : 1366980000,
|
||||||
|
"india" : 1263590000,
|
||||||
|
"usa" : 319220000
|
||||||
|
},
|
||||||
|
"_id" : "products/1600534232",
|
||||||
|
"_rev" : "1600534232",
|
||||||
|
"_key" : "1600534232"
|
||||||
|
}
|
||||||
|
shell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/document/products/1600534232?mergeObjects=true
|
||||||
|
{
|
||||||
|
"inhabitants" : {
|
||||||
|
"indonesia" : 252164800,
|
||||||
|
"brazil" : 203553000
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
shell> curl --data-binary @- --dump - http://localhost:8529/_api/document/products/1600534232
|
||||||
|
|
||||||
|
HTTP/1.1 200 OK
|
||||||
|
content-type: application/json; charset=utf-8
|
||||||
|
etag: "1601058520"
|
||||||
|
|
||||||
|
{
|
||||||
|
"inhabitants" : {
|
||||||
|
"china" : 1366980000,
|
||||||
|
"india" : 1263590000,
|
||||||
|
"usa" : 319220000,
|
||||||
|
"indonesia" : 252164800,
|
||||||
|
"brazil" : 203553000
|
||||||
|
},
|
||||||
|
"_id" : "products/1600534232",
|
||||||
|
"_rev" : "1601058520",
|
||||||
|
"_key" : "1600534232"
|
||||||
|
}
|
||||||
|
shell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/document/products/1600534232?mergeObjects=false
|
||||||
|
{
|
||||||
|
"inhabitants" : {
|
||||||
|
"pakistan" : 188346000
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
HTTP/1.1 202 Accepted
|
||||||
|
content-type: application/json; charset=utf-8
|
||||||
|
etag: "1601517272"
|
||||||
|
location: /_db/_system/_api/document/products/1600534232
|
||||||
|
|
||||||
|
{
|
||||||
|
"error" : false,
|
||||||
|
"_id" : "products/1600534232",
|
||||||
|
"_rev" : "1601517272",
|
||||||
|
"_key" : "1600534232"
|
||||||
|
}
|
||||||
|
shell> curl --data-binary @- --dump - http://localhost:8529/_api/document/products/1600534232
|
||||||
|
|
||||||
|
HTTP/1.1 200 OK
|
||||||
|
content-type: application/json; charset=utf-8
|
||||||
|
etag: "1601517272"
|
||||||
|
|
||||||
|
{
|
||||||
|
"inhabitants" : {
|
||||||
|
"pakistan" : 188346000
|
||||||
|
},
|
||||||
|
"_id" : "products/1600534232",
|
||||||
|
"_rev" : "1601517272",
|
||||||
|
"_key" : "1600534232"
|
||||||
|
}
|
|
@ -0,0 +1,14 @@
|
||||||
|
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/document?collection=products
|
||||||
|
{ "Hello": "World" }
|
||||||
|
|
||||||
|
HTTP/1.1 202 Accepted
|
||||||
|
content-type: application/json; charset=utf-8
|
||||||
|
etag: "1587295960"
|
||||||
|
location: /_db/_system/_api/document/products/1587295960
|
||||||
|
|
||||||
|
{
|
||||||
|
"error" : false,
|
||||||
|
"_id" : "products/1587295960",
|
||||||
|
"_rev" : "1587295960",
|
||||||
|
"_key" : "1587295960"
|
||||||
|
}
|
|
@ -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
|
||||||
|
}
|
|
@ -0,0 +1,14 @@
|
||||||
|
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/document?collection=products
|
||||||
|
{ "Hello": "World" }
|
||||||
|
|
||||||
|
HTTP/1.1 201 Created
|
||||||
|
content-type: application/json; charset=utf-8
|
||||||
|
etag: "1586771672"
|
||||||
|
location: /_db/_system/_api/document/products/1586771672
|
||||||
|
|
||||||
|
{
|
||||||
|
"error" : false,
|
||||||
|
"_id" : "products/1586771672",
|
||||||
|
"_rev" : "1586771672",
|
||||||
|
"_key" : "1586771672"
|
||||||
|
}
|
|
@ -0,0 +1,14 @@
|
||||||
|
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/document?collection=products&createCollection=true
|
||||||
|
{ "Hello": "World" }
|
||||||
|
|
||||||
|
HTTP/1.1 202 Accepted
|
||||||
|
content-type: application/json; charset=utf-8
|
||||||
|
etag: "1588344536"
|
||||||
|
location: /_db/_system/_api/document/products/1588344536
|
||||||
|
|
||||||
|
{
|
||||||
|
"error" : false,
|
||||||
|
"_id" : "products/1588344536",
|
||||||
|
"_rev" : "1588344536",
|
||||||
|
"_key" : "1588344536"
|
||||||
|
}
|
|
@ -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
|
||||||
|
}
|
|
@ -0,0 +1,14 @@
|
||||||
|
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/document?collection=products&waitForSync=true
|
||||||
|
{ "Hello": "World" }
|
||||||
|
|
||||||
|
HTTP/1.1 201 Created
|
||||||
|
content-type: application/json; charset=utf-8
|
||||||
|
etag: "1587820248"
|
||||||
|
location: /_db/_system/_api/document/products/1587820248
|
||||||
|
|
||||||
|
{
|
||||||
|
"error" : false,
|
||||||
|
"_id" : "products/1587820248",
|
||||||
|
"_rev" : "1587820248",
|
||||||
|
"_key" : "1587820248"
|
||||||
|
}
|
|
@ -0,0 +1,12 @@
|
||||||
|
shell> curl --data-binary @- --dump - http://localhost:8529/_api/document/products/1588868824
|
||||||
|
|
||||||
|
HTTP/1.1 200 OK
|
||||||
|
content-type: application/json; charset=utf-8
|
||||||
|
etag: "1588868824"
|
||||||
|
|
||||||
|
{
|
||||||
|
"hello" : "world",
|
||||||
|
"_id" : "products/1588868824",
|
||||||
|
"_rev" : "1588868824",
|
||||||
|
"_key" : "1588868824"
|
||||||
|
}
|
|
@ -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
|
||||||
|
}
|
|
@ -0,0 +1,12 @@
|
||||||
|
shell> curl --data-binary @- --dump - http://localhost:8529/_api/document/?collection=products&type=key
|
||||||
|
|
||||||
|
HTTP/1.1 200 OK
|
||||||
|
content-type: application/json; charset=utf-8
|
||||||
|
|
||||||
|
{
|
||||||
|
"documents" : [
|
||||||
|
"1592014552",
|
||||||
|
"1591359192",
|
||||||
|
"1591686872"
|
||||||
|
]
|
||||||
|
}
|
|
@ -0,0 +1,12 @@
|
||||||
|
shell> curl --data-binary @- --dump - http://localhost:8529/_api/document/?collection=products
|
||||||
|
|
||||||
|
HTTP/1.1 200 OK
|
||||||
|
content-type: application/json; charset=utf-8
|
||||||
|
|
||||||
|
{
|
||||||
|
"documents" : [
|
||||||
|
"/_api/document/products/1590441688",
|
||||||
|
"/_api/document/products/1590769368",
|
||||||
|
"/_api/document/products/1590114008"
|
||||||
|
]
|
||||||
|
}
|
|
@ -0,0 +1,2 @@
|
||||||
|
shell> curl -X HEAD --data-binary @- --dump - http://localhost:8529/_api/document/products/1592604376
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
shell> curl --header 'If-None-Match: "1589458648"' --dump - http://localhost:8529/_api/document/products/1589458648
|
||||||
|
|
|
@ -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
|
||||||
|
}
|
|
@ -0,0 +1,14 @@
|
||||||
|
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/document/products/1593194200
|
||||||
|
{"Hello": "you"}
|
||||||
|
|
||||||
|
HTTP/1.1 202 Accepted
|
||||||
|
content-type: application/json; charset=utf-8
|
||||||
|
etag: "1593521880"
|
||||||
|
location: /_db/_system/_api/document/products/1593194200
|
||||||
|
|
||||||
|
{
|
||||||
|
"error" : false,
|
||||||
|
"_id" : "products/1593194200",
|
||||||
|
"_rev" : "1593521880",
|
||||||
|
"_key" : "1593194200"
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
shell> curl -X PUT --header 'If-Match: "1595291352"' --data-binary @- --dump - http://localhost:8529/_api/document/products/1594963672
|
||||||
|
{"other":"content"}
|
||||||
|
|
||||||
|
HTTP/1.1 412 Precondition Failed
|
||||||
|
content-type: application/json; charset=utf-8
|
||||||
|
etag: "1594963672"
|
||||||
|
|
||||||
|
{
|
||||||
|
"error" : true,
|
||||||
|
"code" : 412,
|
||||||
|
"errorNum" : 1200,
|
||||||
|
"errorMessage" : "precondition failed",
|
||||||
|
"_id" : "products/1594963672",
|
||||||
|
"_rev" : "1594963672",
|
||||||
|
"_key" : "1594963672"
|
||||||
|
}
|
|
@ -0,0 +1,14 @@
|
||||||
|
shell> curl -X PUT --header 'If-Match: "1596405464"' --data-binary @- --dump - http://localhost:8529/_api/document/products/1596077784?policy=last
|
||||||
|
{}
|
||||||
|
|
||||||
|
HTTP/1.1 202 Accepted
|
||||||
|
content-type: application/json; charset=utf-8
|
||||||
|
etag: "1596667608"
|
||||||
|
location: /_db/_system/_api/document/products/1596077784
|
||||||
|
|
||||||
|
{
|
||||||
|
"error" : false,
|
||||||
|
"_id" : "products/1596077784",
|
||||||
|
"_rev" : "1596667608",
|
||||||
|
"_key" : "1596077784"
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/document/products/1597191896?rev=1597519576
|
||||||
|
{"other":"content"}
|
||||||
|
|
||||||
|
HTTP/1.1 412 Precondition Failed
|
||||||
|
content-type: application/json; charset=utf-8
|
||||||
|
etag: "1597191896"
|
||||||
|
|
||||||
|
{
|
||||||
|
"error" : true,
|
||||||
|
"code" : 412,
|
||||||
|
"errorNum" : 1200,
|
||||||
|
"errorMessage" : "precondition failed",
|
||||||
|
"_id" : "products/1597191896",
|
||||||
|
"_rev" : "1597191896",
|
||||||
|
"_key" : "1597191896"
|
||||||
|
}
|
|
@ -0,0 +1,12 @@
|
||||||
|
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/document/products/1594046168
|
||||||
|
{}
|
||||||
|
|
||||||
|
HTTP/1.1 404 Not Found
|
||||||
|
content-type: application/json; charset=utf-8
|
||||||
|
|
||||||
|
{
|
||||||
|
"error" : true,
|
||||||
|
"errorMessage" : "document /_api/document/products/1594046168 not found",
|
||||||
|
"code" : 404,
|
||||||
|
"errorNum" : 1202
|
||||||
|
}
|
|
@ -0,0 +1,30 @@
|
||||||
|
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/edge/?collection=edges&from=vertices/1&to=vertices/2
|
||||||
|
{
|
||||||
|
"name" : "Emil"
|
||||||
|
}
|
||||||
|
|
||||||
|
HTTP/1.1 202 Accepted
|
||||||
|
content-type: application/json; charset=utf-8
|
||||||
|
etag: "1606301400"
|
||||||
|
location: /_db/_system/_api/document/edges/1606301400
|
||||||
|
|
||||||
|
{
|
||||||
|
"error" : false,
|
||||||
|
"_id" : "edges/1606301400",
|
||||||
|
"_rev" : "1606301400",
|
||||||
|
"_key" : "1606301400"
|
||||||
|
}
|
||||||
|
shell> curl --data-binary @- --dump - http://localhost:8529/_api/edge/edges/1606301400
|
||||||
|
|
||||||
|
HTTP/1.1 200 OK
|
||||||
|
content-type: application/json; charset=utf-8
|
||||||
|
etag: "1606301400"
|
||||||
|
|
||||||
|
{
|
||||||
|
"name" : "Emil",
|
||||||
|
"_id" : "edges/1606301400",
|
||||||
|
"_rev" : "1606301400",
|
||||||
|
"_key" : "1606301400",
|
||||||
|
"_from" : "vertices/1",
|
||||||
|
"_to" : "vertices/2"
|
||||||
|
}
|
|
@ -0,0 +1,35 @@
|
||||||
|
shell> curl --data-binary @- --dump - http://localhost:8529/_api/edges/edges?vertex=vertices/1
|
||||||
|
|
||||||
|
HTTP/1.1 200 OK
|
||||||
|
content-type: application/json; charset=utf-8
|
||||||
|
|
||||||
|
{
|
||||||
|
"edges" : [
|
||||||
|
{
|
||||||
|
"_id" : "edges/6",
|
||||||
|
"_key" : "6",
|
||||||
|
"_rev" : "1231173336",
|
||||||
|
"_from" : "vertices/2",
|
||||||
|
"_to" : "vertices/1",
|
||||||
|
"$label" : "v2 -> v1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"_id" : "edges/7",
|
||||||
|
"_key" : "7",
|
||||||
|
"_rev" : "1231697624",
|
||||||
|
"_from" : "vertices/4",
|
||||||
|
"_to" : "vertices/1",
|
||||||
|
"$label" : "v4 -> v1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"_id" : "edges/5",
|
||||||
|
"_key" : "5",
|
||||||
|
"_rev" : "1230649048",
|
||||||
|
"_from" : "vertices/1",
|
||||||
|
"_to" : "vertices/3",
|
||||||
|
"$label" : "v1 -> v3"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"error" : false,
|
||||||
|
"code" : 200
|
||||||
|
}
|
|
@ -0,0 +1,27 @@
|
||||||
|
shell> curl --data-binary @- --dump - http://localhost:8529/_api/edges/edges?vertex=vertices/1&direction=in
|
||||||
|
|
||||||
|
HTTP/1.1 200 OK
|
||||||
|
content-type: application/json; charset=utf-8
|
||||||
|
|
||||||
|
{
|
||||||
|
"edges" : [
|
||||||
|
{
|
||||||
|
"_id" : "edges/6",
|
||||||
|
"_key" : "6",
|
||||||
|
"_rev" : "1235891928",
|
||||||
|
"_from" : "vertices/2",
|
||||||
|
"_to" : "vertices/1",
|
||||||
|
"$label" : "v2 -> v1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"_id" : "edges/7",
|
||||||
|
"_key" : "7",
|
||||||
|
"_rev" : "1236416216",
|
||||||
|
"_from" : "vertices/4",
|
||||||
|
"_to" : "vertices/1",
|
||||||
|
"$label" : "v4 -> v1"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"error" : false,
|
||||||
|
"code" : 200
|
||||||
|
}
|
|
@ -0,0 +1,19 @@
|
||||||
|
shell> curl --data-binary @- --dump - http://localhost:8529/_api/edges/edges?vertex=vertices/1&direction=out
|
||||||
|
|
||||||
|
HTTP/1.1 200 OK
|
||||||
|
content-type: application/json; charset=utf-8
|
||||||
|
|
||||||
|
{
|
||||||
|
"edges" : [
|
||||||
|
{
|
||||||
|
"_id" : "edges/5",
|
||||||
|
"_key" : "5",
|
||||||
|
"_rev" : "1240086232",
|
||||||
|
"_from" : "vertices/1",
|
||||||
|
"_to" : "vertices/3",
|
||||||
|
"$label" : "v1 -> v3"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"error" : false,
|
||||||
|
"code" : 200
|
||||||
|
}
|
|
@ -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
|
||||||
|
}
|
|
@ -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"
|
||||||
|
}
|
|
@ -0,0 +1,18 @@
|
||||||
|
shell> curl --data-binary @- --dump - http://localhost:8529/_api/endpoint
|
||||||
|
|
||||||
|
HTTP/1.1 200 OK
|
||||||
|
content-type: application/json; charset=utf-8
|
||||||
|
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"endpoint" : "tcp://127.0.0.1:31389",
|
||||||
|
"databases" : [ ]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"endpoint" : "tcp://127.0.0.1:8532",
|
||||||
|
"databases" : [
|
||||||
|
"mydb1",
|
||||||
|
"mydb2"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue