[aerogear-dev] Query/Paging Brainstorm
Douglas Campos
qmx at qmx.me
Tue Oct 30 17:44:47 EDT 2012
Howdy!
As we discussed on our team meeting today, having basic query and pagination support would be cool.
Here are some suggestions, gathered from previous conversations around the topic, and from some BaaS providers in the wild.
Paging:
1) /cars/?limit=10&offset=3
2) /cars/?limit=10&skip=3
Query:
1) /cars/query?color=blue
2) /cars/?query={"color":"red", "owner":"summers"}
3) /cars/?where={"brand":"BMW"}
4) /cars/?query={"engine":{"cylinders": 8}}
5) /cars/?query={"engine":{"cylinders":{"$gt":6}}}
This is not set into stone, just ideas, and I do think that anything above exact matches should go after 1.0
Thoughts?
-- qmx
More information about the aerogear-dev
mailing list