jiangphcn closed pull request #262: Fix _local_docs examples and remove ETAG 
references
URL: https://github.com/apache/couchdb-documentation/pull/262
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/src/api/local.rst b/src/api/local.rst
index 7350aff..c261721 100644
--- a/src/api/local.rst
+++ b/src/api/local.rst
@@ -104,7 +104,6 @@ A list of the available methods and URL paths are provided 
below:
       reflects. Default is ``false``.
     :>header Content-Type: - :mimetype:`application/json`
                            - :mimetype:`text/plain; charset=utf-8`
-    :>header ETag: Response signature
     :>json number offset: Offset where the design document list started
     :>json array rows: Array of view row objects. By default the information
       returned contains only the design document ID and revision.
@@ -129,12 +128,11 @@ A list of the available methods and URL paths are 
provided below:
         Cache-Control: must-revalidate
         Content-Type: application/json
         Date: Sat, 23 Dec 2017 16:22:56 GMT
-        ETag: "1W2DJUZFZSZD9K78UFA3GZWB4"
         Server: CouchDB (Erlang/OTP)
         Transfer-Encoding: chunked
 
         {
-            "offset": 0,
+            "offset": null,
             "rows": [
                 {
                     "id": "_local/localdoc01",
@@ -172,7 +170,7 @@ A list of the available methods and URL paths are provided 
below:
                     }
                 }
             ],
-            "total_rows": 5
+            "total_rows": null
         }
 
 .. http:post:: /{db}/_local_docs
@@ -208,7 +206,7 @@ A list of the available methods and URL paths are provided 
below:
     .. code-block:: javascript
 
         {
-            "total_rows" : 5,
+            "total_rows" : null,
             "rows" : [
                 {
                     "value" : {
@@ -225,7 +223,7 @@ A list of the available methods and URL paths are provided 
below:
                     "key" : "_local/localdoc05"
                 }
             ],
-            "offset" : 0
+            "offset" : null
         }
 
 ``/db/_local/id``


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to