From 8d4761846e852d1147b982ca6c4d0199ee5746cf Mon Sep 17 00:00:00 2001 From: franck cuny Date: Sun, 17 Oct 2010 17:33:55 +0200 Subject: update description to current specification --- apps/couchdb.json | 100 +++++++++++++++++++++++------------------------------- 1 file changed, 43 insertions(+), 57 deletions(-) (limited to 'apps/couchdb.json') 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 " - ], + "authority" : "GITHUB:franckcuny", "meta" : { "documentation" : "http://wiki.apache.org/couchdb/HTTP_Document_API" } -- cgit v1.2.3