queries in the URL

Zaid Abdulla zaid at genieacs.com
Wed Apr 8 13:23:49 EDT 2015


On Wed, Apr 8, 2015, at 05:59 PM, Dave whoohoo wrote:
> Hey,
> 
> Could someone explain how to do AND / OR operations in the queries in the URL?
> 
> For example:
> 
> I would like to retrieve all information for the files file1.txt and file2.txt in one request
> 
> I can retrieve information for 1 file now using the following:
> 
> GET http://server:7557/files/?query{"filename"="file1.txt"}

You can use "$or" operator. Refer to MongoDB's query language. That's
what GenieACS uses for querying and for preconditions in presets:

http://docs.mongodb.org/v2.6/tutorial/query-documents/

Zaid


More information about the Users mailing list