<div dir="ltr">><span style="font-family:arial,sans-serif;font-size:13px">For the demo purpose, we could bootstrap the list of cars during startup so we don't need to manually add all the cars.</span><div style><span style="font-family:arial,sans-serif;font-size:13px">Absolutely, that would be no problem. </span></div>
<div style><br></div><div style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 10 January 2013 10:06, Sebastien Blanc <span dir="ltr"><<a href="mailto:scm.blanc@gmail.com" target="_blank">scm.blanc@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Great !</div>For the demo purpose, we could bootstrap the list of cars during startup so we don't need to manually add all the cars.<div>
Seb</div><div><br></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote"><div><div class="h5">On Thu, Jan 10, 2013 at 10:02 AM, Daniel Bevenius <span dir="ltr"><<a href="mailto:daniel.bevenius@gmail.com" target="_blank">daniel.bevenius@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
<div dir="ltr">We talked about paging yesterday on IRC, and it was decided to add a paging example to aerogear-controller-demo. What follows is an example to kick of further discussion about what the example should look like.<br>
<div><br></div><div><h2 style="border-bottom-style:solid;border-bottom-width:1px;font-size:24px;font-family:Helvetica,arial,freesans,clean,sans-serif;margin:0px 0px 10px;padding:0px;border-bottom-color:rgb(204,204,204)">
</h2><h2 style="margin:0px 0px 10px;padding:0px;font-size:24px;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(204,204,204)"></h2><h2 style="margin:0px 0px 10px;padding:0px;font-size:24px;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(204,204,204)">
AeroGear Controller Demo Paging Route</h2><p style="margin:0px 0px 15px;font-size:14px;font-weight:normal;line-height:22px">This page discusses <a href="https://issues.jboss.org/browse/AEROGEAR-795" style="color:rgb(65,131,196);text-decoration:initial" target="_blank">AEROGEAR-795</a> which is about adding an example to aerogear-controller-demo to demonstrate paging support so that the client libraries (Android, JavaScript, and iOS) can be tested against it.</p>
<p style="margin:15px 0px;font-size:14px;font-weight:normal;line-height:22px">This is only a suggestion and the implementation and the names of the query parameters can all be changed.</p><h3 style="margin:20px 0px 10px;padding:0px;font-size:18px">
Use case</h3><p style="margin:0px 0px 15px;font-size:14px;font-weight:normal;line-height:22px">The example is using cars as the resource to interact with. To be able to query we need something to query, so lets start by adding some cars by posting.</p>
<h4 style="margin:20px 0px 10px;padding:0px;font-size:16px">Adding Cars</h4><div style="border:none;padding:0px;font-size:14px;font-weight:normal;line-height:22px"><pre style="font-size:13px;line-height:19px;font-family:Consolas,'Liberation Mono',Courier,monospace;word-wrap:break-word;margin-top:15px;margin-bottom:15px;background-color:rgb(248,248,248);border:1px solid rgb(204,204,204);overflow:auto;padding:6px 10px;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px">
<span style="color:rgb(0,128,128)">URL</span><span style="font-weight:bold">=</span><span style="color:rgb(221,17,68)">"<a href="http://controllerdemo-danbev.rhcloud.com/aerogear-controller-demo" target="_blank">http://controllerdemo-danbev.rhcloud.com/aerogear-controller-demo</a>"</span>
curl -i --header <span style="color:rgb(221,17,68)">"Accept: application/json"</span> -H <span style="color:rgb(221,17,68)">"Content-type: application/x-www-form-urlencoded"</span> --data <span style="color:rgb(221,17,68)">"car.color=Black&car.brand=BMW"</span> -X POST <span style="color:rgb(221,17,68)">"$URL/cars"</span>
curl -i --header <span style="color:rgb(221,17,68)">"Accept: application/json"</span> -H <span style="color:rgb(221,17,68)">"Content-type: application/x-www-form-urlencoded"</span> --data <span style="color:rgb(221,17,68)">"car.color=Red&car.brand=Ferrari"</span> -X POST <span style="color:rgb(221,17,68)">"$URL/cars"</span>
curl -i --header <span style="color:rgb(221,17,68)">"Accept: application/json"</span> -H <span style="color:rgb(221,17,68)">"Content-type: application/x-www-form-urlencoded"</span> --data <span style="color:rgb(221,17,68)">"car.color=Blue&car.brand=Skoda"</span> -X POST <span style="color:rgb(221,17,68)">"$URL/cars"</span>
curl -i --header <span style="color:rgb(221,17,68)">"Accept: application/json"</span> -H <span style="color:rgb(221,17,68)">"Content-type: application/x-www-form-urlencoded"</span> --data <span style="color:rgb(221,17,68)">"car.color=Green&car.brand=Audi"</span> -X POST <span style="color:rgb(221,17,68)">"$URL/cars"</span>
curl -i --header <span style="color:rgb(221,17,68)">"Accept: application/json"</span> -H <span style="color:rgb(221,17,68)">"Content-type: application/x-www-form-urlencoded"</span> --data <span style="color:rgb(221,17,68)">"car.color=Yello&car.brand=Opel"</span> -X POST <span style="color:rgb(221,17,68)">"$URL/cars"</span>
curl -i --header <span style="color:rgb(221,17,68)">"Accept: application/json"</span> -H <span style="color:rgb(221,17,68)">"Content-type: application/x-www-form-urlencoded"</span> --data <span style="color:rgb(221,17,68)">"car.color=Pink&car.brand=Mini"</span> -X POST <span style="color:rgb(221,17,68)">"$URL/cars"</span>
curl -i --header <span style="color:rgb(221,17,68)">"Accept: application/json"</span> -H <span style="color:rgb(221,17,68)">"Content-type: application/x-www-form-urlencoded"</span> --data <span style="color:rgb(221,17,68)">"car.color=Gray&car.brand=Nissan"</span> -X POST <span style="color:rgb(221,17,68)">"$URL/cars"</span>
curl -i --header <span style="color:rgb(221,17,68)">"Accept: application/json"</span> -H <span style="color:rgb(221,17,68)">"Content-type: application/x-www-form-urlencoded"</span> --data <span style="color:rgb(221,17,68)">"car.color=Red&car.brand=Volvo"</span> -X POST <span style="color:rgb(221,17,68)">"$URL/cars"</span>
curl -i --header <span style="color:rgb(221,17,68)">"Accept: application/json"</span> -H <span style="color:rgb(221,17,68)">"Content-type: application/x-www-form-urlencoded"</span> --data <span style="color:rgb(221,17,68)">"car.color=Blue&car.brand=Saab"</span> -X POST <span style="color:rgb(221,17,68)">"$URL/cars"</span>
curl -i --header <span style="color:rgb(221,17,68)">"Accept: application/json"</span> -H <span style="color:rgb(221,17,68)">"Content-type: application/x-www-form-urlencoded"</span> --data <span style="color:rgb(221,17,68)">"car.color=Black&car.brand=Mazda"</span> -X POST <span style="color:rgb(221,17,68)">"$URL/cars"</span>
curl -i --header <span style="color:rgb(221,17,68)">"Accept: application/json"</span> -H <span style="color:rgb(221,17,68)">"Content-type: application/x-www-form-urlencoded"</span> --data <span style="color:rgb(221,17,68)">"car.color=Yello&car.brand=Golf"</span> -X POST <span style="color:rgb(221,17,68)">"$URL/cars"</span>
</pre></div><p style="margin:15px 0px;font-size:14px;font-weight:normal;line-height:22px">The example uses an in-memory database so the data will be cleared upon redployment/restart of the server. So you only need to populate/post when you've restared or redployed.</p>
<p style="margin:15px 0px;font-size:14px;font-weight:normal;line-height:22px">With the cars in place, we can now issue GET requests with paging query parameters. The following route has been added to the demo:</p><div style="border:none;padding:0px;font-size:14px;font-weight:normal;line-height:22px">
<pre style="font-size:13px;line-height:19px;font-family:Consolas,'Liberation Mono',Courier,monospace;word-wrap:break-word;margin-top:15px;margin-bottom:15px;background-color:rgb(248,248,248);border:1px solid rgb(204,204,204);overflow:auto;padding:6px 10px;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px">
<span>route</span><span style="font-weight:bold">()</span>
<span style="font-weight:bold">.</span><span style="color:rgb(0,128,128)">from</span><span style="font-weight:bold">(</span><span style="color:rgb(221,17,68)">"/cars"</span><span style="font-weight:bold">)</span>
<span style="font-weight:bold">.</span><span style="color:rgb(0,128,128)">on</span><span style="font-weight:bold">(</span><span>RequestMethod</span><span style="font-weight:bold">.</span><span style="color:rgb(0,128,128)">GET</span><span style="font-weight:bold">)</span>
<span style="font-weight:bold">.</span><span style="color:rgb(0,128,128)">produces</span><span style="font-weight:bold">(</span><span>MediaType</span><span style="font-weight:bold">.</span><span style="color:rgb(0,128,128)">JSON</span><span style="font-weight:bold">.</span><span style="color:rgb(0,128,128)">toString</span><span style="font-weight:bold">())</span>
<span style="font-weight:bold">.</span><span style="color:rgb(0,128,128)">to</span><span style="font-weight:bold">(</span><span>Cars</span><span style="font-weight:bold">.</span><span style="color:rgb(0,128,128)">class</span><span style="font-weight:bold">).</span><span style="color:rgb(0,128,128)">get</span><span style="font-weight:bold">(</span><span>param</span><span style="font-weight:bold">(</span><span style="color:rgb(221,17,68)">"page"</span><span style="font-weight:bold">,</span> <span style="color:rgb(221,17,68)">"0"</span><span style="font-weight:bold">),</span> <span>param</span><span style="font-weight:bold">(</span><span style="color:rgb(221,17,68)">"perPage"</span><span style="font-weight:bold">,</span> <span style="color:rgb(221,17,68)">"-1"</span><span style="font-weight:bold">));</span>
</pre></div><p style="margin:15px 0px;font-size:14px;font-weight:normal;line-height:22px">From this we can see that there are two optional parameters, <code style="font-size:12px;line-height:normal;font-family:Consolas,'Liberation Mono',Courier,monospace;margin:0px 2px;padding:0px 5px;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;white-space:nowrap">page</code> and <code style="font-size:12px;line-height:normal;font-family:Consolas,'Liberation Mono',Courier,monospace;margin:0px 2px;padding:0px 5px;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;white-space:nowrap">perPage</code>. If these are not specified all cars will be returned.</p>
<h4 style="margin:20px 0px 10px;padding:0px;font-size:16px">Getting a page of Cars</h4><div style="border:none;padding:0px;font-size:14px;font-weight:normal;line-height:22px"><pre style="font-size:13px;line-height:19px;font-family:Consolas,'Liberation Mono',Courier,monospace;word-wrap:break-word;margin-top:15px;margin-bottom:15px;background-color:rgb(248,248,248);border:1px solid rgb(204,204,204);overflow:auto;padding:6px 10px;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px">
<span style="color:rgb(0,128,128)">URL</span><span style="font-weight:bold">=</span><span style="color:rgb(221,17,68)">"<a href="http://controllerdemo-danbev.rhcloud.com/aerogear-controller-demo" target="_blank">http://controllerdemo-danbev.rhcloud.com/aerogear-controller-demo</a>"</span>
curl -i --header <span style="color:rgb(221,17,68)">"Accept: application/json"</span> <span style="color:rgb(221,17,68)">"$URL/cars?page=0&perPage=4"</span>
</pre></div><p style="margin:15px 0px;font-size:14px;font-weight:normal;line-height:22px">The request will return:</p><div style="border:none;padding:0px;font-size:14px;font-weight:normal;line-height:22px"><pre style="font-size:13px;line-height:19px;font-family:Consolas,'Liberation Mono',Courier,monospace;word-wrap:break-word;margin-top:15px;margin-bottom:15px;background-color:rgb(248,248,248);border:1px solid rgb(204,204,204);overflow:auto;padding:6px 10px;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px">
<span>{</span>
<span style="color:rgb(221,17,68)">"metadata"</span><span style="font-weight:bold">:</span><span>{</span><span style="color:rgb(221,17,68)">"page"</span><span style="font-weight:bold">:</span><span style="color:rgb(0,153,153)">0</span><span>,</span><span style="color:rgb(221,17,68)">"perPage"</span><span style="font-weight:bold">:</span><span style="color:rgb(0,153,153)">4</span><span>},</span>
<span style="color:rgb(221,17,68)">"cars"</span><span style="font-weight:bold">:</span><span>[</span>
<span>{</span><span style="color:rgb(221,17,68)">"color"</span><span style="font-weight:bold">:</span><span style="color:rgb(221,17,68)">"Black"</span><span>,</span><span style="color:rgb(221,17,68)">"brand"</span><span style="font-weight:bold">:</span><span style="color:rgb(221,17,68)">"BMW"</span><span>,</span><span style="color:rgb(221,17,68)">"id"</span><span style="font-weight:bold">:</span><span style="color:rgb(0,153,153)">1</span><span>},</span>
<span>{</span><span style="color:rgb(221,17,68)">"color"</span><span style="font-weight:bold">:</span><span style="color:rgb(221,17,68)">"Red"</span><span>,</span><span style="color:rgb(221,17,68)">"brand"</span><span style="font-weight:bold">:</span><span style="color:rgb(221,17,68)">"Ferrari"</span><span>,</span><span style="color:rgb(221,17,68)">"id"</span><span style="font-weight:bold">:</span><span style="color:rgb(0,153,153)">2</span><span>},</span>
<span>{</span><span style="color:rgb(221,17,68)">"color"</span><span style="font-weight:bold">:</span><span style="color:rgb(221,17,68)">"Blue"</span><span>,</span><span style="color:rgb(221,17,68)">"brand"</span><span style="font-weight:bold">:</span><span style="color:rgb(221,17,68)">"Skoda"</span><span>,</span><span style="color:rgb(221,17,68)">"id"</span><span style="font-weight:bold">:</span><span style="color:rgb(0,153,153)">3</span><span>},</span>
<span>{</span><span style="color:rgb(221,17,68)">"color"</span><span style="font-weight:bold">:</span><span style="color:rgb(221,17,68)">"Green"</span><span>,</span><span style="color:rgb(221,17,68)">"brand"</span><span style="font-weight:bold">:</span><span style="color:rgb(221,17,68)">"Audi"</span><span>,</span><span style="color:rgb(221,17,68)">"id"</span><span style="font-weight:bold">:</span><span style="color:rgb(0,153,153)">4</span><span>}</span>
<span>],</span>
<span style="color:rgb(221,17,68)">"links"</span><span style="font-weight:bold">:</span><span>{</span>
<span style="color:rgb(221,17,68)">"first"</span><span style="font-weight:bold">:</span><span style="color:rgb(221,17,68)">"cars?page=0&page=4"</span><span>,</span>
<span style="color:rgb(221,17,68)">"previous"</span><span style="font-weight:bold">:</span><span style="color:rgb(221,17,68)">"cars?page=0&page=4"</span><span>,</span>
<span style="color:rgb(221,17,68)">"next"</span><span style="font-weight:bold">:</span><span style="color:rgb(221,17,68)">"cars?page=1&page=4"</span>
<span>}</span>
<span>}</span>
</pre></div><h4 style="margin:20px 0px 10px;padding:0px;font-size:16px">Getting the next page of Cars</h4><p style="margin:0px 0px 15px;font-size:14px;font-weight:normal;line-height:22px">To get the next page you can follow the <code style="font-size:12px;line-height:normal;font-family:Consolas,'Liberation Mono',Courier,monospace;margin:0px 2px;padding:0px 5px;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;white-space:nowrap">next</code> link:</p>
<div style="border:none;padding:0px;font-size:14px;font-weight:normal;line-height:22px"><pre style="font-size:13px;line-height:19px;font-family:Consolas,'Liberation Mono',Courier,monospace;word-wrap:break-word;margin-top:15px;margin-bottom:15px;background-color:rgb(248,248,248);border:1px solid rgb(204,204,204);overflow:auto;padding:6px 10px;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px">
<span style="color:rgb(0,128,128)">URL</span><span style="font-weight:bold">=</span><span style="color:rgb(221,17,68)">"<a href="http://controllerdemo-danbev.rhcloud.com/aerogear-controller-demo" target="_blank">http://controllerdemo-danbev.rhcloud.com/aerogear-controller-demo</a>"</span>
curl -i --header <span style="color:rgb(221,17,68)">"Accept: application/json"</span> <span style="color:rgb(221,17,68)">"$URL/cars?page=1&perPage=4"</span>
</pre></div><div style="border:none;padding:0px;font-size:14px;font-weight:normal;line-height:22px"><pre style="font-size:13px;line-height:19px;font-family:Consolas,'Liberation Mono',Courier,monospace;word-wrap:break-word;margin-top:15px;margin-bottom:15px;background-color:rgb(248,248,248);border:1px solid rgb(204,204,204);overflow:auto;padding:6px 10px;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px">
<span>{</span>
<span style="color:rgb(221,17,68)">"metadata"</span><span style="font-weight:bold">:</span><span>{</span><span style="color:rgb(221,17,68)">"page"</span><span style="font-weight:bold">:</span><span style="color:rgb(0,153,153)">1</span><span>,</span><span style="color:rgb(221,17,68)">"perPage"</span><span style="font-weight:bold">:</span><span style="color:rgb(0,153,153)">4</span><span>},</span>
<span style="color:rgb(221,17,68)">"cars"</span><span style="font-weight:bold">:</span><span>[</span>
<span>{</span><span style="color:rgb(221,17,68)">"color"</span><span style="font-weight:bold">:</span><span style="color:rgb(221,17,68)">"Yello"</span><span>,</span><span style="color:rgb(221,17,68)">"brand"</span><span style="font-weight:bold">:</span><span style="color:rgb(221,17,68)">"Opel"</span><span>,</span><span style="color:rgb(221,17,68)">"id"</span><span style="font-weight:bold">:</span><span style="color:rgb(0,153,153)">5</span><span>},</span>
<span>{</span><span style="color:rgb(221,17,68)">"color"</span><span style="font-weight:bold">:</span><span style="color:rgb(221,17,68)">"Pink"</span><span>,</span><span style="color:rgb(221,17,68)">"brand"</span><span style="font-weight:bold">:</span><span style="color:rgb(221,17,68)">"Mini"</span><span>,</span><span style="color:rgb(221,17,68)">"id"</span><span style="font-weight:bold">:</span><span style="color:rgb(0,153,153)">6</span><span>},</span>
<span>{</span><span style="color:rgb(221,17,68)">"color"</span><span style="font-weight:bold">:</span><span style="color:rgb(221,17,68)">"Gray"</span><span>,</span><span style="color:rgb(221,17,68)">"brand"</span><span style="font-weight:bold">:</span><span style="color:rgb(221,17,68)">"Nissan"</span><span>,</span><span style="color:rgb(221,17,68)">"id"</span><span style="font-weight:bold">:</span><span style="color:rgb(0,153,153)">7</span><span>},</span>
<span>{</span><span style="color:rgb(221,17,68)">"color"</span><span style="font-weight:bold">:</span><span style="color:rgb(221,17,68)">"Red"</span><span>,</span><span style="color:rgb(221,17,68)">"brand"</span><span style="font-weight:bold">:</span><span style="color:rgb(221,17,68)">"Volvo"</span><span>,</span><span style="color:rgb(221,17,68)">"id"</span><span style="font-weight:bold">:</span><span style="color:rgb(0,153,153)">8</span><span>}</span>
<span>],</span>
<span style="color:rgb(221,17,68)">"links"</span><span style="font-weight:bold">:</span><span>{</span>
<span style="color:rgb(221,17,68)">"first"</span><span style="font-weight:bold">:</span><span style="color:rgb(221,17,68)">"cars?page=0&page=4"</span><span>,</span>
<span style="color:rgb(221,17,68)">"previous"</span><span style="font-weight:bold">:</span><span style="color:rgb(221,17,68)">"cars?page=0&page=4"</span><span>,</span>
<span style="color:rgb(221,17,68)">"next"</span><span style="font-weight:bold">:</span><span style="color:rgb(221,17,68)">"cars?page=2&page=4"</span>
<span>}</span>
<span>}</span>
</pre></div><h4 style="margin:20px 0px 10px;padding:0px;font-size:16px">Get all Cars</h4><div style="border:none;padding:0px;font-size:14px;font-weight:normal;line-height:22px"><pre style="font-size:13px;line-height:19px;font-family:Consolas,'Liberation Mono',Courier,monospace;word-wrap:break-word;margin-top:15px;margin-bottom:15px;background-color:rgb(248,248,248);border:1px solid rgb(204,204,204);overflow:auto;padding:6px 10px;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px">
<span style="color:rgb(0,128,128)">URL</span><span style="font-weight:bold">=</span><span style="color:rgb(221,17,68)">"<a href="http://controllerdemo-danbev.rhcloud.com/aerogear-controller-demo" target="_blank">http://controllerdemo-danbev.rhcloud.com/aerogear-controller-demo</a>"</span>
curl -i --header <span style="color:rgb(221,17,68)">"Accept: application/json"</span> <span style="color:rgb(221,17,68)">"$URL/cars"</span>
</pre></div><h4 style="margin:20px 0px 10px;padding:0px;font-size:16px">Get a single Car</h4><div style="border:none;padding:0px;font-size:14px;font-weight:normal;line-height:22px"><pre style="font-size:13px;line-height:19px;font-family:Consolas,'Liberation Mono',Courier,monospace;word-wrap:break-word;margin-top:15px;margin-bottom:15px;background-color:rgb(248,248,248);border:1px solid rgb(204,204,204);overflow:auto;padding:6px 10px;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px">
<span style="color:rgb(0,128,128)">URL</span><span style="font-weight:bold">=</span><span style="color:rgb(221,17,68)">"<a href="http://controllerdemo-danbev.rhcloud.com/aerogear-controller-demo" target="_blank">http://controllerdemo-danbev.rhcloud.com/aerogear-controller-demo</a>"</span>
curl -i --header <span style="color:rgb(221,17,68)">"Accept: application/json"</span> <span style="color:rgb(221,17,68)">"$URL/cars/1"</span>
</pre></div><p style="margin:15px 0px;font-size:14px;font-weight:normal;line-height:22px">The request will return:</p><div style="border:none;padding:0px;font-size:14px;font-weight:normal;line-height:22px"><pre style="font-size:13px;line-height:19px;font-family:Consolas,'Liberation Mono',Courier,monospace;word-wrap:break-word;margin-top:15px;margin-bottom:15px;background-color:rgb(248,248,248);border:1px solid rgb(204,204,204);overflow:auto;padding:6px 10px;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px">
<span>{</span><span style="color:rgb(221,17,68)">"color"</span><span style="font-weight:bold">:</span><span style="color:rgb(221,17,68)">"Black"</span><span>,</span><span style="color:rgb(221,17,68)">"brand"</span><span style="font-weight:bold">:</span><span style="color:rgb(221,17,68)">"BMW"</span><span>,</span><span style="color:rgb(221,17,68)">"id"</span><span style="font-weight:bold">:</span><span style="color:rgb(0,153,153)">1</span><span>}</span>
</pre></div><p style="margin:15px 0px;font-size:14px;font-weight:normal;line-height:22px">Again, anything here can be changed, the name of the query parameters, the implementation, and what is returned.</p><p style="margin:15px 0px;font-size:14px;font-weight:normal;line-height:22px">
Reference:</p><ul style="margin-top:15px;margin-right:0px;margin-left:0px;padding:0px 0px 0px 30px;font-size:14px;font-weight:normal;line-height:22px;margin-bottom:0px!important"><li><a href="https://gist.github.com/4147473" style="color:rgb(65,131,196);text-decoration:initial;margin-top:0px" target="_blank">Paging Support in AeroGear Controller</a></li>
</ul></div></div>
<br></div></div>_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
<br></blockquote></div><br></div>