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 JanLehnardt
Date Sat, 30 Jul 2011 15:58:12 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 JanLehnardt:
http://wiki.apache.org/couchdb/HTTP_Document_API?action=diff&rev1=77&rev2=78

Comment:
remove out-of order comment

  
  A note on attachment names: Attachments may have embedded '''/''' characters that are sent
unescaped to CouchDB. You can use this to provide a subtree of attachments under a document.
A DocID must have any '''/''' escaped as '''%2F'''. So if you have document ''a/b/c'' with
an attachment ''d/e/f.txt'', you would be able to access it at [[http://couchdb/db/a/b/c/d/e/f.txt|http://couchdb/db/a%2fb%2fc/d/e/f.txt]]
.
  
- 
  === Standalone Attachments ===
- Note: This was added in version 0.9 of CouchDB. It is not available in earlier versions.
  
- CouchDB allows to create, change and delete attachments without touching the actual document.
As a bonus feature, you do not have to base64 encode your data. This can significantly speed
up requests since CouchDB and your client do not have to do the base64 conversion.
+ CouchDB allows to create, change and delete attachments without touching the actual document.

  
  You need to specify a MIME type using the Content-Type header. CouchDB will serve the attachment
with the specified Content-Type when asked.
  

Mime
View raw message