You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ja...@apache.org on 2019/08/13 13:02:59 UTC

[couchdb-documentation] branch feat/bulk-get created (now f22a2f0)

This is an automated email from the ASF dual-hosted git repository.

jan pushed a change to branch feat/bulk-get
in repository https://gitbox.apache.org/repos/asf/couchdb-documentation.git.


      at f22a2f0  feat: add example response for _bulk_get with two conflicts

This branch includes the following new commits:

     new f22a2f0  feat: add example response for _bulk_get with two conflicts

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[couchdb-documentation] 01/01: feat: add example response for _bulk_get with two conflicts

Posted by ja...@apache.org.
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 <ja...@apache.org>
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:
 
 ==================