<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Oct 30, 2012, at 5:53 PM, Matthias Wessendorf wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hello!<br><br><br>On Tue, Oct 30, 2012 at 10:44 PM, Douglas Campos &lt;<a href="mailto:qmx@qmx.me">qmx@qmx.me</a>&gt; wrote:<br><blockquote type="cite">Howdy!<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">As we discussed on our team meeting today, having basic query and pagination support would be cool.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Here are some suggestions, gathered from previous conversations around the topic, and from some BaaS providers in the wild.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Paging:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">1) /cars/?limit=10&amp;offset=3<br></blockquote><blockquote type="cite">2) /cars/?limit=10&amp;skip=3<br></blockquote></div></blockquote><div><br></div><div>Is the skip the number of pages, or the literal item count to start on?</div><div><br></div><div>Also, we would want a way to get back a total #, and page #'s give a page size. &nbsp;This may be a separate call - wdyt?</div><br><blockquote type="cite"><div><blockquote type="cite"><br></blockquote><blockquote type="cite">Query:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">1) /cars/query?color=blue<br></blockquote><blockquote type="cite">2) /cars/?query={"color":"red", "owner":"summers"}<br></blockquote><blockquote type="cite">3) /cars/?where={"brand":"BMW"}<br></blockquote><blockquote type="cite">4) /cars/?query={"engine":{"cylinders": 8}}<br></blockquote><blockquote type="cite">5) /cars/?query={"engine":{"cylinders":{"$gt":6}}}<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">This is not set into stone, just ideas,<br></blockquote><br>I guess it's a matter of agreeing :) the main work is on the "ag<br>server component".<br><br>Question.... do we want to keep it flexible? E.g. if AG clients are<br>used for a backend that does not use "limit" for the pagination?<br>(I guess kinda similar to what we have on the endpoints, where you can<br>override the default)<br><br></div></blockquote><div><br></div><div>Where would you override this? &nbsp;In the pipeline creation?</div><div><br></div><div>Also, and opinions on using matrix parameters instead of query parameters? &nbsp;For now we would need to combine with #PathParam &amp; PathSegments. &nbsp;See&nbsp;<a href="http://docs.jboss.org/resteasy/docs/3.0-beta-1/userguide/html_single/index.html#_PathParam_and_PathSegment">http://docs.jboss.org/resteasy/docs/3.0-beta-1/userguide/html_single/index.html#_PathParam_and_PathSegment</a>&nbsp;for details.</div><div><br></div><div>This would allow future nesting of queries.</div><br><blockquote type="cite"><div><br><blockquote type="cite">and I do think that anything above exact matches should go after 1.0<br></blockquote><br>fine w/ me<br></div></blockquote><div><br></div>+1</div><div><br><blockquote type="cite"><div><br>-M<br><br><blockquote type="cite"><br></blockquote><blockquote type="cite">Thoughts?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">-- qmx<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">_______________________________________________<br></blockquote><blockquote type="cite">aerogear-dev mailing list<br></blockquote><blockquote type="cite"><a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br></blockquote><blockquote type="cite"><a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br></blockquote><br><br><br>-- <br>Matthias Wessendorf<br><br>blog: <a href="http://matthiaswessendorf.wordpress.com/">http://matthiaswessendorf.wordpress.com/</a><br>sessions: <a href="http://www.slideshare.net/mwessendorf">http://www.slideshare.net/mwessendorf</a><br>twitter: <a href="http://twitter.com/mwessendorf">http://twitter.com/mwessendorf</a><br>_______________________________________________<br>aerogear-dev mailing list<br><a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>https://lists.jboss.org/mailman/listinfo/aerogear-dev<br></div></blockquote></div><br></body></html>