Created GET /query entry points for querying using criteria, id, appId and userId