You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by Apache Wiki <wi...@apache.org> on 2009/05/08 11:10:14 UTC
[Couchdb Wiki] Update of "HTTP Document API" by jaapvdp
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 jaapvdp:
http://wiki.apache.org/couchdb/HTTP_Document_API
The comment on the change is:
Added a bit about all_docs_by_seq
------------------------------------------------------------------------------
}}}
If you add ''include_docs=true'' to a request to ''_all_docs'' not only metadata but also the documents themselves are returned.
+
+ == all_docs_by_seq ==
+
+ This allows you to see all the documents that were updated and deleted, in the order these actions are done:
+
+ {{{
+ GET somedatabase/_all_docs_by_seq HTTP/1.0
+ }}}
+
+ Will return:
+
+ {{{
+ HTTP/1.1 200 OK
+ Date: Fri, 8 May 2009 11:07:02 +0000GMT
+ Content-Type: application/json
+ Connection: close
+
+ {
+ "total_rows": 4, "offset": 0, "rows": [
+ {"id": "doc1", "key": "1", "value": {"rev":"1-4124667444"}},
+ {"id": "doc2", "key": "2", "value": {"rev":"1-1815587255"}},
+ {"id": "doc3", "key": "3", "value": {"rev": "1-1750227892"}},
+ {"id": "doc4", "key": "4", "value": {"rev": "2-524044848", "deleted": true}}
+ ]
+ }
+ }}}
+
+ All the view parameters work on _all_docs_by_seq, such as startkey, include_docs etc.
+
== Attachments ==