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] Update of "HTTP_Document_API" by RobertNewson
Date Mon, 24 Dec 2012 18:40:50 GMT
Dear Wiki user,

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

The "HTTP_Document_API" page has been changed by RobertNewson:
http://wiki.apache.org/couchdb/HTTP_Document_API?action=diff&rev1=94&rev2=95

Comment:
fix even moar

  To create an attachment on an existing document:
  
  {{{
- PUT somedatabase/document/attachment?rev=123 HTTP/1.0
+ PUT /somedatabase/document/attachment?rev=123 HTTP/1.0
  Content-Length: 245
  Content-Type: image/jpeg
  
@@ -488, +488 @@

  To change an attachment:
  
  {{{
- PUT somedatabase/document/attachment?rev=765B7D1C HTTP/1.0
+ PUT /somedatabase/document/attachment?rev=765B7D1C HTTP/1.0
  Content-Length: 245
  Content-Type: image/jpeg
  
@@ -502, +502 @@

  To delete an attachment:
  
  {{{
- DELETE somedatabase/document/attachment?rev=765B7D1C HTTP/1.0
+ DELETE /somedatabase/document/attachment?rev=765B7D1C HTTP/1.0
  }}}
  CouchDB replies:
  

Mime
View raw message