summaryrefslogtreecommitdiff
path: root/apps/couchdb.json
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2010-10-17 17:33:55 +0200
committerfranck cuny <franck@lumberjaph.net>2010-10-17 17:33:55 +0200
commit8d4761846e852d1147b982ca6c4d0199ee5746cf (patch)
tree29b5d1b4ec5f10ff1641063f1e2968dc6b61206c /apps/couchdb.json
parentupdate all description to reflect recent changes in specifications (diff)
downloadapi-description-8d4761846e852d1147b982ca6c4d0199ee5746cf.tar.gz
update description to current specification
Diffstat (limited to 'apps/couchdb.json')
-rw-r--r--apps/couchdb.json100
1 files changed, 43 insertions, 57 deletions
diff --git a/apps/couchdb.json b/apps/couchdb.json
index 118f516..f68529f 100644
--- a/apps/couchdb.json
+++ b/apps/couchdb.json
@@ -2,90 +2,76 @@
"version" : "0.2",
"methods" : {
"create_document_without_id" : {
- "params" : {
- "required" : [
- "database"
- ]
- },
+ "required_params" : [
+ "database"
+ ],
"path" : "/:database",
"method" : "POST"
},
"get_all_documents" : {
- "params" : {
- "required" : [
- "database"
- ],
- "optional" : [
- "descending",
- "startkey",
- "endkey",
- "limit",
- "include_docs"
- ]
- },
+ "required_params" : [
+ "database"
+ ],
+ "optional_params" : [
+ "descending",
+ "startkey",
+ "endkey",
+ "limit",
+ "include_docs"
+ ],
"path" : "/:database/_all_docs",
"method" : "GET"
},
"create_document_with_id" : {
- "params" : {
- "required" : [
- "database",
- "doc_id"
- ]
- },
+ "required_params" : [
+ "database",
+ "doc_id"
+ ],
"path" : "/:database/:doc_id",
"method" : "POST"
},
"get_document" : {
- "params" : {
- "required" : [
- "database",
- "doc_id"
- ],
- "optional" : [
- "rev",
- "revs"
- ]
- },
+ "required_params" : [
+ "database",
+ "doc_id"
+ ],
+ "optional_params" : [
+ "rev",
+ "revs"
+ ],
"path" : "/:database/:doc_id",
"method" : "GET"
},
"get_all_documents_by_seq" : {
- "params" : {
- "required" : [
- "database"
- ],
- "optional" : [
- "startkey",
- "endkey",
- "limit",
- "include_docs"
- ]
- },
+ "required_params" : [
+ "database"
+ ],
+ "optional_params" : [
+ "startkey",
+ "endkey",
+ "limit",
+ "include_docs"
+ ],
"path" : "/:database/_all_docs_by_seq",
"method" : "GET"
},
"delete_document" : {
- "params" : {
- "required" : [
- "database",
- "doc_id"
- ],
- "optional" : [
- "rev"
- ]
- },
+ "required_params" : [
+ "database",
+ "doc_id"
+ ],
+ "optional_params" : [
+ "rev"
+ ],
"path" : "/:database/:doc_id",
"method" : "DELETE"
}
},
- "api_format" : [
+ "formats" : [
"json"
],
"name" : "CouchDB",
- "author" : [
- "franck cuny <franck@lumberjaph.net>"
- ],
+ "authority" : "GITHUB:franckcuny",
"meta" : {
"documentation" : "http://wiki.apache.org/couchdb/HTTP_Document_API"
}