couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Couchdb Wiki] Trivial Update of "HTTP database API" by JanLehnardt
Date Thu, 26 Mar 2009 16:10:15 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification.

The following page has been changed by JanLehnardt:
http://wiki.apache.org/couchdb/HTTP_database_API

The comment on the change is:
fix http version numbers

------------------------------------------------------------------------------
  To get a list of databases on a CouchDB server, use the ''/_all_dbs'' URI:
  
  {{{
- GET /_all_dbs HTTP/1.01
+ GET /_all_dbs HTTP/1.1
  Date: Thu, 17 Aug 2006 05:39:28 +0000GMT
  }}}
  
@@ -57, +57 @@

  On success, HTTP status ''201'' is returned. If a database already exists a ''409'' error
is returned.
  
  {{{
- PUT /somedatabase/ HTTP/1.0
+ PUT /somedatabase/ HTTP/1.1
  Content-Length: 0
  Date: Thu, 17 Aug 2006 05:39:28 +0000GMT
  }}}
@@ -81, +81 @@

  On success, HTTP status ''200'' is returned. If the database doesn't exist, a ''404'' error
is returned.
  
  {{{
- DELETE /somedatabase/ HTTP/1.0
+ DELETE /somedatabase/ HTTP/1.1
  Content-Length: 1
  Date: Thu, 17 Aug 2006 05:39:28 +0000GMT
  }}}
@@ -103, +103 @@

  To get information about a particular database, perform a GET operation on the database,
e.g.:
  
  {{{
- GET /somedatabase/ HTTP/1.0
+ GET /somedatabase/ HTTP/1.1
  }}}
  
  The server's response is a JSON object similar to the following:

Mime
View raw message