couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vatam...@apache.org
Subject documentation commit: updated refs/heads/master to 5492d00
Date Fri, 07 Oct 2016 15:20:18 GMT
Repository: couchdb-documentation
Updated Branches:
  refs/heads/master d306d1871 -> 5492d00bc


Describe use of '_selector' option for filter.

Add sub-heading fixes.


Project: http://git-wip-us.apache.org/repos/asf/couchdb-documentation/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-documentation/commit/5492d00b
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-documentation/tree/5492d00b
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-documentation/diff/5492d00b

Branch: refs/heads/master
Commit: 5492d00bc3d47ab6a928f48633df87fc631f0b10
Parents: d306d18
Author: Adrian Warman <Adrian.Warman@uk.ibm.com>
Authored: Mon Sep 5 17:15:22 2016 +0100
Committer: Nick Vatamaniuc <vatamane@apache.org>
Committed: Fri Oct 7 11:19:33 2016 -0400

----------------------------------------------------------------------
 src/api/database/changes.rst | 45 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-documentation/blob/5492d00b/src/api/database/changes.rst
----------------------------------------------------------------------
diff --git a/src/api/database/changes.rst b/src/api/database/changes.rst
index fde4077..2ff1bc3 100644
--- a/src/api/database/changes.rst
+++ b/src/api/database/changes.rst
@@ -543,6 +543,51 @@ request object.
         ]
     }
 
+.. _changes/filter/selector/missing:
+
+Missing selector
+################
+
+If the selector object is missing from the request body,
+the error message is similar to the following example:
+
+.. code-block:: json
+
+   {
+      "error": "bad request",
+      "reason": "Selector must be specified in POST payload"
+   }
+
+.. _changes/filter/selector/invalidjson:
+
+Not a valid JSON object
+#######################
+
+If the selector object is not a well-formed JSON object,
+the error message is similar to the following example:
+
+.. code-block:: json
+
+   {
+      "error": "bad request",
+      "reason": "Selector error: expected a JSON object"
+   }
+
+.. _changes/filter/selector/invalidselector:
+
+Not a valid selector
+####################
+
+If the selector object does not contain a valid selection expression,
+the error message is similar to the following example:
+
+.. code-block:: json
+
+   {
+      "error": "bad request",
+      "reason": "Selector error: expected a JSON object"
+   }
+
 .. _changes/filter/design:
 
 _design


Mime
View raw message