Skip to content

Commit

Permalink
Update the data endpoint documentation
Browse files Browse the repository at this point in the history
- Add information about the 'or' and 'ornull' filter options
  • Loading branch information
Davis Raymond Muro authored and DavisRayM committed Jan 13, 2020
1 parent fcfa36b commit b02272f
Showing 1 changed file with 26 additions and 9 deletions.
35 changes: 26 additions & 9 deletions docs/data.rst
Original file line number Diff line number Diff line change
Expand Up @@ -431,18 +431,35 @@ 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"}]}

Example VI
^^^^^^^
Query submissions where car is honda or is null

::

curl -X GET https://api.ona.io/api/v1/data/22845?query={"$ornull": [{"car": "honda"}]}

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
**$ornull** Or is null
=========== ===================================

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

0 comments on commit b02272f

Please sign in to comment.