This is an automated email from the ASF dual-hosted git repository. jan pushed a commit to branch feat/bulk-get in repository https://gitbox.apache.org/repos/asf/couchdb-documentation.git
commit f22a2f0ae140025b263c49ecafbe2098ce296cb5 Author: Jan Lehnardt <[email protected]> AuthorDate: Tue Aug 13 15:02:43 2019 +0200 feat: add example response for _bulk_get with two conflicts --- src/api/database/bulk-api.rst | 52 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/src/api/database/bulk-api.rst b/src/api/database/bulk-api.rst index 7729f90..a95ad20 100644 --- a/src/api/database/bulk-api.rst +++ b/src/api/database/bulk-api.rst @@ -604,6 +604,58 @@ Sending multiple queries to a database ] } + Example response with a conflicted document: + + **Request**: + + .. code-block:: http + + POST /db/_bulk_get HTTP/1.1 + Accept: application/json + Content-Type:application/json + Host: localhost:5984 + + { + "docs": [ + { + "id": "a" + } + ] + } + + **Response**: + + .. code-block:: http + + HTTP/1.1 200 OK + Cache-Control: must-revalidate + Content-Type: application/json + Date: Mon, 19 Mar 2018 15:27:34 GMT + Server: CouchDB (Erlang/OTP) + + { + "results": [ + { + "id": "a", + "docs": [ + { + "ok": { + "_id": "a", + "_rev": "1-23202479633c2b380f79507a776743d5", + "a": 1 + } + }, + { + "ok": { + "_id": "a", + "_rev": "1-967a00dff5e02add41819138abb3284d" + } + } + ] + } + ] + } + .. _api/db/bulk_docs: ==================
