couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <>
Subject [Couchdb Wiki] Update of "HTTP_view_API" by MarcelloNuccio
Date Thu, 19 Jan 2012 12:30:23 GMT
Dear Wiki user,

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

The "HTTP_view_API" page has been changed by MarcelloNuccio:

removed stupid warning (sorry)

  curl -v 'http://localhost:5984/DB/_all_docs?keys=%5B%22ID1%22,%22ID2%22%5D&include_docs=true'
- However, this may cause problems when caching is involved, because (as of today with 1.1.1)
the Etag header returned by CouchDB does not change when you use `include_docs=true`.
  ''key'', ''keys'', ''startkey'', and ''endkey'' need to be properly JSON encoded values.
For example, startkey="string" for a string value or startkey=["foo", 1, {}]. Be aware that
you have to do proper URL encoding on complex values.
  If you specify ''?limit=0'' you don't get any data, but all meta-data for this View. The
number of documents in this View for example.

View raw message