You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2018/03/16 12:47:15 UTC

[GitHub] flimzy commented on a change in pull request #241: Queries endpoint support

flimzy commented on a change in pull request #241: Queries endpoint support
URL: https://github.com/apache/couchdb-documentation/pull/241#discussion_r175077817
 
 

 ##########
 File path: src/api/ddoc/views.rst
 ##########
 @@ -788,7 +788,137 @@ To omit some records you may use ``skip`` query parameter:
 Sending multiple queries to a view
 ==================================
 
-.. versionadded:: 2.0
+.. versionadded:: 2.1+
+
+.. http:post:: /{db}/_design/{ddoc}/_view/{view}/queries
+    :synopsis: Returns results for the specified queries
+
+    Executes multiple specified view queries against the view function
+    from the specified design document.
+
+    :param db: Database name
+    :param ddoc: Design document name
+    :param view: View function name
+
+    :<header Content-Type: - :mimetype:`application/json`
+    :<header Accept: - :mimetype:`application/json`
+
+    :<json queries:  An array of query objects with fields for the
+        parameters of each individual view query to be executed. The field names
+        and their meaning are the same as the query parameters of a
+        regular :ref:`view request <api/ddoc/view>`.
+
+    :>header Content-Type: - :mimetype:`application/json`
+    :>header ETag: Response signature
+    :>header Transfer-Encoding: ``chunked``
+
+    :>json array results: An array of result objects - one for each query. Each
+        result object contains the same fields as the response to a regular
+        :ref:`view request <api/ddoc/view>`.
+
+    :code 200: Request completed successfully
+    :code 400: Invalid request
+    :code 401: Read permission required
+    :code 404: Specified database, design document or view is missed
 
 Review comment:
   s/missed/missing/

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services