<div dir="ltr">Not sure if it solves your problem but you shouldn&#39;t use a path param here but a request param, like : <div style><br></div><div style>/aero/facilities/?username=user1</div><div style><br></div><div style>
<pre style="white-space:pre-wrap">route().from(&quot;/facilities&quot;).on(RequestMethod.GET).consumes(JSON).produces(MediaType.JSON).to(MyAerogearFacade.class).getFacilityByUsername(param(&quot;username&quot;));</pre><pre style="white-space:pre-wrap">
<br></pre><pre style="white-space:pre-wrap">and don&#39;t forget to set your base URL to /aero in the pipe</pre><pre style="white-space:pre-wrap">Hope that helps.</pre><pre style="white-space:pre-wrap">Seb</pre><pre style="white-space:pre-wrap">
<br></pre></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Apr 10, 2013 at 9:27 AM, tomlux <span dir="ltr">&lt;<a href="mailto:tom@schuller.lu" target="_blank">tom@schuller.lu</a>&gt;</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><span style="font-size:13px;font-family:Verdana,Geneva,Helvetica,Arial,sans-serif">Sorry, seems to be blocked in the mailing list:</span></div>
<div><span style="font-size:13px;font-family:Verdana,Geneva,Helvetica,Arial,sans-serif">  </span><a href="http://aerogear-dev.1069024.n5.nabble.com/Integrate-custom-route-into-quot-aerogear-android-quot-td2230.html" rel="nofollow" link="external" target="_blank">http://aerogear-dev.1069024.n5.nabble.com/Integrate-custom-route-into-quot-aerogear-android-quot-td2230.html</a></div>

<div><br></div><div>Now, for the mailinglist:</div><div class="im"><div><span style="font-size:13px;font-family:Verdana,Geneva,Helvetica,Arial,sans-serif"><br></span></div><span style="font-size:13px;font-family:Verdana,Geneva,Helvetica,Arial,sans-serif">I created a custom route (non CRUD) in my aerogear facade. </span><br style="font-size:13px;font-family:Verdana,Geneva,Helvetica,Arial,sans-serif">

</div><pre style>route().from(&quot;/aero/facilities/byUsername/{username}&quot;).on(RequestMethod.GET).consumes(JSON).produces(MediaType.JSON).to(MyAerogearFacade.class).getFacilityByUsername(param(&quot;username&quot;));</pre>
<div class="im">
<br style="font-size:13px;font-family:Verdana,Geneva,Helvetica,Arial,sans-serif"><span style="font-size:13px;font-family:Verdana,Geneva,Helvetica,Arial,sans-serif">Using curl, I&#39;m getting the expected results: </span><br style="font-size:13px;font-family:Verdana,Geneva,Helvetica,Arial,sans-serif">

</div><pre style> curl  --header &quot;Accept: application/json&quot; <a href="http://localhost:8080/farming/aero/facilities/byUsername/user1" rel="nofollow" link="external" target="_blank">http://localhost:8080/farming/aero/facilities/byUsername/user1</a></pre>

</div><div class="gmail_extra"><br><br><div class="gmail_quote"><div class="im">On Wed, Apr 10, 2013 at 9:19 AM, Sebastien Blanc [via aerogear-dev] <span dir="ltr">&lt;<a href="http://user/SendEmail.jtp?type=node&amp;node=2233&amp;i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>&gt;</span> wrote:<br>

</div><blockquote style="border-left:2px solid #cccccc;padding:0 1em" class="gmail_quote"><div class="im"><div>

        <div dir="ltr">Hey,<div>We need a bit more info here ;) </div><div>What is the route you defined  and  Can you paste your CURL ?</div><div>Thx,</div><div>Seb</div><div><br></div><div><br>
</div><div><br></div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div class="im"><div><div>On Wed, Apr 10, &lt;a href=&quot;tel:2013&quot; value=&quot;<a href="tel:%2B3522013" value="+3522013" target="_blank">+3522013</a>&quot; target=&quot;_blank&quot;&gt;2013 at 6:56 AM, tomlux <span dir="ltr">&lt;<a href="http://user/SendEmail.jtp?type=node&amp;node=2232&amp;i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>&gt;</span> wrote:<br>


</div></div></div><blockquote style="border-left:2px solid #cccccc;padding:0 1em" class="gmail_quote"><div class="im"><div><div>Hy,<br>
I created a custom route (non CRUD) in my aerogear facade.<br>
<br>
<br>
Using curl, I&#39;m getting the expected results:<br>
<br>
<br>
What is the easiest way to consume this route in &quot;aerogear-android&quot;?<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 &quot;ReadFilter.setWhere&quot;, but I don&#39;t<br>
know how I can/should configure this in the controller. The url was<br>
correctly build, but the where condition wasn&#39;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><br>



Sent from the aerogear-dev mailing list archive at Nabble.com.<br>
_______________________________________________<br>
aerogear-dev mailing list<br>
</div></div></div><a href="http://user/SendEmail.jtp?type=node&amp;node=2232&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>
</blockquote></div><br></div>
<br>_______________________________________________
<br>aerogear-dev mailing list
<br><a href="http://user/SendEmail.jtp?type=node&amp;node=2232&amp;i=2" 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>
        <hr noshade size="1" color="#cccccc">
        <div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                <a href="http://aerogear-dev.1069024.n5.nabble.com/Integrate-custom-route-into-aerogear-android-tp2230p2232.html" rel="nofollow" link="external" target="_blank">http://aerogear-dev.1069024.n5.nabble.com/Integrate-custom-route-into-aerogear-android-tp2230p2232.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 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" link="external" target="_blank">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-tp2230p2233.html" target="_blank">Re: [aerogear-dev] Integrate custom route into &quot;aerogear-android&quot;</a><div class="HOEnZb">
<div class="h5"><br>
Sent from the <a href="http://aerogear-dev.1069024.n5.nabble.com/" target="_blank">aerogear-dev mailing list archive</a> at Nabble.com.<br></div></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></blockquote></div><br></div>