Skip to content

Commit

Permalink
Update data endpoint documentation
Browse files Browse the repository at this point in the history
- Add information about '$or' filter option
  • Loading branch information
DavisRayM committed Jan 22, 2020
1 parent 3faabd3 commit 8bd0a11
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions docs/data.rst
Original file line number Diff line number Diff line change
Expand Up @@ -431,18 +431,26 @@ Query submissions with case insensitive and partial search

curl -X GET https://api.ona.io/api/v1/data/22845?query={"name":{"$i":"hosee"}}

Example V
^^^^^^^
Query submissions where age is 21 or name is hosee

::

curl -X GET https://api.ona.io/api/v1/data/22845?query={"$or": [{"age": "21", "name": "hosee"}]}

All Filters Options

======== ===================================
Filter Description
======== ===================================
**$gt** Greater than
**$gte** Greater than or Equal to
**$lt** Less than
**$lte** Less or Equal to
**$i** Case insensitive or partial search
======== ===================================
======= ===================================
Filter Description
======= ===================================
**$gt** Greater than
**$gte** Greater than or Equal to
**$lt** Less than
**$lte** Less or Equal to
**$i** Case insensitive or partial search
**$or** Or
======= ===================================

Query submitted data of a specific form using date_created
----------------------------------------------------------
Expand Down

0 comments on commit 8bd0a11

Please sign in to comment.