Skip to content

Instantly share code, notes, and snippets.

@tamtam180
Created April 7, 2012 11:56
Show Gist options
  • Save tamtam180/2328151 to your computer and use it in GitHub Desktop.
Save tamtam180/2328151 to your computer and use it in GitHub Desktop.
AvocadoDB's Memo
{
"code": 200,
"collections": [
{
"id": 130920,
"name": "tamtam",
"status": 3
},
{
"id": 4783976,
"name": "unit_test_aaa",
"status": 3
},
{
"id": 2621288,
"name": "unit_test_123",
"status": 2
}
],
"error": false,
"names": {
"tamtam": {
"id": 130920,
"name": "tamtam",
"status": 3
},
"unit_test_123": {
"id": 2621288,
"name": "unit_test_123",
"status": 2
},
"unit_test_aaa": {
"id": 4783976,
"name": "unit_test_aaa",
"status": 3
}
}
}
{
"code": 200,
"collections": {
"tamtam": {
"_id": 130920,
"figures": {
"numberAlive": 8,
"numberDatafiles": 1,
"numberDead": 1,
"numberDeletion": 1,
"sizeAlive": 452,
"sizeDead": 16
},
"name": "tamtam",
"status": 3
},
"unit_test_123": {
"_id": 2621288,
"figures": {},
"name": "unit_test_123",
"status": 2
},
"unit_test_aaa": {
"_id": 4783976,
"figures": {
"numberAlive": 0,
"numberDatafiles": 0,
"numberDead": 0,
"numberDeletion": 0,
"sizeAlive": 0,
"sizeDead": 0
},
"name": "unit_test_aaa",
"status": 3
}
},
"count": 3,
"error": false,
"path": "/home/tamtam/local-app/avocado/var/avocado",
"total": 3
}
なんかWikiのドキュメントと構造が違うような。
確認したリビジョン: 16aacb1769eccb16570ed6e10e7f924b1cac8550 (Fri Apr 6 22:21:34 2012 +0200)
[tamtam@tamsvr20 tmp]$ curl -X GET --dump - http://localhost:8529/_api/collections
HTTP/1.1 200 OK
connection: Keep-Alive
content-type: application/json
server: triagens GmbH High-Performance HTTP Server
content-length: 531
{"path":"/home/tamtam/local-app/avocado/var/avocado","total":3,"count":3,"collections":{"tamtam":{"_id":130920,"name":"tamtam","status":3,"figures":{"numberDatafiles":1,"numberAlive":8,"numberDead":1,"sizeAlive":452,"sizeDead":16,"numberDeletion":1}},"unit_test_aaa":{"_id":4783976,"name":"unit_test_aaa","status":3,"figures":{"numberDatafiles":0,"numberAlive":0,"numberDead":0,"sizeAlive":0,"sizeDead":0,"numberDeletion":0}},"unit_test_123":{"_id":2621288,"name":"unit_test_123","status":2,"figures":{}}},"error":false,"code":200}
@tamtam180
Copy link
Author

/collection と /collections を間違っていただけでした。
ちなみに/collectionsはWikiにはないっぽい?

@fceller
Copy link

fceller commented Apr 7, 2012

/collections is some old stuff, which I want to remove in the next release.

@tamtam180
Copy link
Author

OK, I see, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment