summaryrefslogtreecommitdiff
path: root/t/specs/couchdb.json
blob: 1aa293c30dfab259b13d6f507da48078f5a0e4cc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
{
   "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 <franck@lumberjaph.net>"
   ],
   "meta" : {
      "documentation" : "http://wiki.apache.org/couchdb/HTTP_Document_API"
   }
}