From 7c4e7ed42a318a10bca97a4b52c1765a769bdc1f Mon Sep 17 00:00:00 2001 From: franck cuny Date: Sun, 17 Oct 2010 21:45:36 +0200 Subject: remove couchdb api; add dummy spec for tests --- t/specs/api.json | 24 +++++++++++++ t/specs/content.tgz | Bin 0 -> 304 bytes t/specs/couchdb.json | 93 --------------------------------------------------- 3 files changed, 24 insertions(+), 93 deletions(-) create mode 100644 t/specs/api.json create mode 100644 t/specs/content.tgz delete mode 100644 t/specs/couchdb.json (limited to 't/specs') diff --git a/t/specs/api.json b/t/specs/api.json new file mode 100644 index 0000000..42e3c25 --- /dev/null +++ b/t/specs/api.json @@ -0,0 +1,24 @@ +{ + "name": "Test API", + "methods" : { + "get_info" : { + "authentication": true, + "path" : "/show", + "method" : "GET", + "optional_params" : [ + "user", + "border" + ] + }, + "get_user_info" : { + "required_params" : [ + "user" + ], + "optional_params" : [ + "border" + ], + "path" : "/show", + "method" : "GET" + } + } +} diff --git a/t/specs/content.tgz b/t/specs/content.tgz new file mode 100644 index 0000000..957039c Binary files /dev/null and b/t/specs/content.tgz differ diff --git a/t/specs/couchdb.json b/t/specs/couchdb.json deleted file mode 100644 index 1aa293c..0000000 --- a/t/specs/couchdb.json +++ /dev/null @@ -1,93 +0,0 @@ -{ - "version" : "0.2", - "methods" : { - "create_document_without_id" : { - "params" : { - "required" : [ - "database" - ] - }, - "path" : "/:database", - "method" : "POST" - }, - "get_all_documents" : { - "params" : { - "required" : [ - "database" - ], - "optional" : [ - "descending", - "startkey", - "endkey", - "limit", - "include_docs" - ] - }, - "authentication": true, - "path" : "/:database/_all_docs", - "method" : "GET" - }, - "create_document_with_id" : { - "params" : { - "required" : [ - "database", - "doc_id" - ] - }, - "path" : "/:database/:doc_id", - "method" : "POST" - }, - "get_document" : { - "params" : { - "required" : [ - "database", - "doc_id" - ], - "optional" : [ - "rev", - "revs" - ] - }, - "path" : "/:database/:doc_id", - "method" : "GET" - }, - "get_all_documents_by_seq" : { - "params" : { - "required" : [ - "database" - ], - "optional" : [ - "startkey", - "endkey", - "limit", - "include_docs" - ] - }, - "path" : "/:database/_all_docs_by_seq", - "method" : "GET" - }, - "delete_document" : { - "params" : { - "required" : [ - "database", - "doc_id" - ], - "optional" : [ - "rev" - ] - }, - "path" : "/:database/:doc_id", - "method" : "DELETE" - } - }, - "api_format" : [ - "json" - ], - "name" : "CouchDB", - "author" : [ - "franck cuny " - ], - "meta" : { - "documentation" : "http://wiki.apache.org/couchdb/HTTP_Document_API" - } -} -- cgit 1.4.1