summaryrefslogtreecommitdiff
path: root/apps/couchdb/server.json
diff options
context:
space:
mode:
authorFrancois Perrad <francois.perrad@gadz.org>2010-10-28 20:00:16 +0200
committerFrancois Perrad <francois.perrad@gadz.org>2010-10-28 20:00:16 +0200
commit5ee435e295ab8d09571e9c670e3cdaf7fc28c789 (patch)
treeec8d8c6e166571d83a17bd3b5c68287543dd383d /apps/couchdb/server.json
parentspore2dot: add a detailed generation (diff)
downloadapi-description-5ee435e295ab8d09571e9c670e3cdaf7fc28c789.tar.gz
CouchDB: an alternate description
(still incomplete)
Diffstat (limited to 'apps/couchdb/server.json')
-rw-r--r--apps/couchdb/server.json86
1 files changed, 86 insertions, 0 deletions
diff --git a/apps/couchdb/server.json b/apps/couchdb/server.json
new file mode 100644
index 0000000..3f59827
--- /dev/null
+++ b/apps/couchdb/server.json
@@ -0,0 +1,86 @@
+{
+ "version" : "0.1",
+ "methods" : {
+ "get_root" : {
+ "path" : "/",
+ "method" : "GET"
+ },
+ "get_all_dbs" : {
+ "path" : "/_all_dbs",
+ "method" : "GET"
+ },
+ "get_active_tasks" : {
+ "path" : "/_active_tasks",
+ "method" : "GET"
+ },
+ "replicate" : {
+ "path" : "/_replicate",
+ "method" : "POST",
+ "required_payload" : true
+ },
+ "get_uuids" : {
+ "path" : "/_uuids",
+ "method" : "GET",
+ "optional_params" : [
+ "count"
+ ]
+ },
+ "restart" : {
+ "path" : "/_restart",
+ "method" : "POST"
+ },
+ "get_stats" : {
+ "path" : "/_stats",
+ "method" : "GET"
+ },
+ "get_log" : {
+ "path" : "/_log",
+ "method" : "GET"
+ },
+ "get_config" : {
+ "path" : "/_config",
+ "method" : "GET"
+ },
+ "get_config_section" : {
+ "path" : "/_config/:section",
+ "method" : "GET",
+ "required_params" : [
+ "section"
+ ]
+ },
+ "get_config_item" : {
+ "path" : "/_config/:section/:key",
+ "method" : "GET",
+ "required_params" : [
+ "section",
+ "key"
+ ]
+ },
+ "set_config_item" : {
+ "path" : "/_config/:section/:key",
+ "method" : "PUT",
+ "required_params" : [
+ "section",
+ "key"
+ ]
+ },
+ "delete_config_item" : {
+ "path" : "/_config/:section/:key",
+ "method" : "DELETE",
+ "required_params" : [
+ "section",
+ "key"
+ ]
+ }
+ },
+ "formats" : [
+ "json"
+ ],
+ "expected_status" : [ 200 ],
+ "name" : "CouchDB",
+ "authority" : "http://github.com/SPORE",
+ "meta" : {
+ "documentation" : "http://wiki.apache.org/couchdb/Complete_HTTP_API_Reference",
+ "module" : "server"
+ }
+}