summaryrefslogblamecommitdiff
path: root/apps/couchdb.json
blob: 118f5161e05c5576c27dad5471d502909281a81d (plain) (tree)
1
2
3
4
5
6
7
8
9
 
                     

                                      




                          



                               











                             



                                         





                          



                                       









                          



                                       










                             



                                                








                          









                                           



                                                                          
 
{
   "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"
            ]
         },
         "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"
   }
}