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 _______________________________________________ Users mailing list [email protected] http://lists.genieacs.com/mailman/listinfo/users
