<div dir="ltr">Hy,<div>I got it working with &quot;<span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">setLinkUri&quot;</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">&lt;<a href="/user/SendEmail.jtp?type=node&node=2259&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>&gt;</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 {&quot;parent&quot;:{&quot;childId&quot;: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>&gt; Hy,
<br>&gt; I created a custom route (non CRUD) in my aerogear facade.
<br>&gt;
<br>&gt;
<br>&gt; Using curl, I&#39;m getting the expected results:
<br>&gt;
<br>&gt;
<br>&gt; What is the easiest way to consume this route in &quot;aerogear-android&quot;?
<br>&gt; As far as I understand, the pipe concept is just valid for the predefined
<br>&gt; CRUD routes.
<br>&gt;
<br>&gt; I also tried to solve my problem with &quot;ReadFilter.setWhere&quot;, but I don&#39;t
<br>&gt; know how I can/should configure this in the controller. The url was
<br>&gt; correctly build, but the where condition wasn&#39;t repectet.
<br>&gt;
<br>&gt; Thanks,
<br>&gt;   Tom
<br>&gt;
<br>&gt;
<br>&gt;
<br>&gt; --
<br>&gt; 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>
&gt; Sent from the aerogear-dev mailing list archive at Nabble.com.
<br>&gt; _______________________________________________
<br>&gt; aerogear-dev mailing list
<br></div></div>&gt; <a href="http://user/SendEmail.jtp?type=node&amp;node=2243&amp;i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br>&gt; <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&amp;node=2243&amp;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 &quot;aerogear-android&quot;, <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&amp;id=instant_html%21nabble%3Aemail.naml&amp;base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&amp;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 &quot;aerogear-android&quot;</a><br/>
Sent from the <a href="http://aerogear-dev.1069024.n5.nabble.com/">aerogear-dev mailing list archive</a> at Nabble.com.<br/>