Skip to content
This repository was archived by the owner on Oct 17, 2022. It is now read-only.

Commit f9bb181

Browse files
bessbdflimzy
authored andcommitted
Update POST for view (#459)
* Update POST for view In apache/couchdb#2338 the way POST view works is altered so that the same functionality is available as in GET view. This commit updates the POST view documentation to reflect this new behavior. Co-Authored-By: Jonathan Hall <flimzy@flimzy.com>
1 parent b982eef commit f9bb181

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/api/ddoc/views.rst

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -157,14 +157,13 @@
157157
transfer size for attachments.
158158

159159
.. http:post:: /{db}/_design/{ddoc}/_view/{view}
160-
:synopsis: Returns certain rows for the specified stored view
160+
:synopsis: Returns results for the specified view
161161

162162
Executes the specified view function from the specified design document.
163-
Unlike :get:`/{db}/_design/{ddoc}/_view/{view}` for accessing views, the
164-
:method:`POST` method supports the specification
165-
of explicit keys to be retrieved from the view results. The remainder of
166-
the :method:`POST` view functionality is identical to the
167-
:get:`/{db}/_design/{ddoc}/_view/{view}` API.
163+
:method:`POST` view functionality supports identical parameters and behavior
164+
as specified in the :get:`/{db}/_design/{ddoc}/_view/{view}` API but allows for the
165+
query string parameters to be supplied as keys in a JSON object in the body
166+
of the `POST` request.
168167

169168
**Request**:
170169

0 commit comments

Comments
 (0)