<div dir="ltr">Hy,<div>I got it working with "<span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">setLinkUri"</span> method.</div><div style>The where method was producing a non-working url.</div>
<div style><br></div><div style>I will check it deeper to provide further details.</div><div style><br></div><div style>Thanks for any help,</div><div style> Tom</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Wed, Apr 10, 2013 at 2:23 PM, Summers Pittman [via aerogear-dev] <span dir="ltr"><<a href="/user/SendEmail.jtp?type=node&node=2259&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>></span> wrote:<br>
<blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
        Tom,
<br><br>Good morning! Here is a gist which describes briefly what you are
<br>wanting to do. I broke it down to demonstrate using both /$username and
<br>a query parameter.
<br><br><a href="https://gist.github.com/secondsun/66c141f026c3a83191f2" rel="nofollow" link="external" target="_blank">https://gist.github.com/secondsun/66c141f026c3a83191f2</a><br><br>*ReadFilter* has two methods to help you with this, `setLinkUri` and
<br>`setWhere`.
<br><br> `setLinkUri` consumes a *URI* which will be appended to the end of
<br>your query.
<br>`setWhere` consumes a *JSONObject* which provides your query parameters.
<br><br>*ReadFilter* is gracious enough to flatten out the *JSONObject* when it
<br>makes the query. IE {"parent":{"childId":1}} becomes ?parent.childId=1.
<br><br>Hope this helps!
<br><br>Summers
<br><br>On 04/10/2013 12:56 AM, tomlux wrote:
</div><div><div><div class="h5"><div class='shrinkable-quote'><br>> Hy,
<br>> I created a custom route (non CRUD) in my aerogear facade.
<br>>
<br>>
<br>> Using curl, I'm getting the expected results:
<br>>
<br>>
<br>> What is the easiest way to consume this route in "aerogear-android"?
<br>> As far as I understand, the pipe concept is just valid for the predefined
<br>> CRUD routes.
<br>>
<br>> I also tried to solve my problem with "ReadFilter.setWhere", but I don't
<br>> know how I can/should configure this in the controller. The url was
<br>> correctly build, but the where condition wasn't repectet.
<br>>
<br>> Thanks,
<br>> Tom
<br>>
<br>>
<br>>
<br>> --
<br>> View this message in context: <a href="http://aerogear-dev.1069024.n5.nabble.com/Integrate-custom-route-into-aerogear-android-tp2230.html" rel="nofollow" link="external" target="_blank">http://aerogear-dev.1069024.n5.nabble.com/Integrate-custom-route-into-aerogear-android-tp2230.html</a></div>
> Sent from the aerogear-dev mailing list archive at Nabble.com.
<br>> _______________________________________________
<br>> aerogear-dev mailing list
<br></div></div>> <a href="http://user/SendEmail.jtp?type=node&node=2243&i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br>> <a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" rel="nofollow" link="external" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a></div><br>_______________________________________________
<br>aerogear-dev mailing list
<br><div class="im"><a href="http://user/SendEmail.jtp?type=node&node=2243&i=1" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br><a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" rel="nofollow" link="external" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
        
        
        
        <br>
        <br>
        <hr noshade size="1" color="#cccccc">
        </div><div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif"><div class="im">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                </div><a href="http://aerogear-dev.1069024.n5.nabble.com/Integrate-custom-route-into-aerogear-android-tp2230p2243.html" target="_blank" rel="nofollow" link="external">http://aerogear-dev.1069024.n5.nabble.com/Integrate-custom-route-into-aerogear-android-tp2230p2243.html</a>
        </div>
        <div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
                
                To unsubscribe from Integrate custom route into "aerogear-android", <a href="" target="_blank" rel="nofollow" link="external">click here</a>.<br>
                <a href="http://aerogear-dev.1069024.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" target="_blank" link="external">NAML</a>
        </div></blockquote></div><br></div>
        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://aerogear-dev.1069024.n5.nabble.com/Integrate-custom-route-into-aerogear-android-tp2230p2259.html">Re: [aerogear-dev] Integrate custom route into "aerogear-android"</a><br/>
Sent from the <a href="http://aerogear-dev.1069024.n5.nabble.com/">aerogear-dev mailing list archive</a> at Nabble.com.<br/>