<div dir="ltr">Oh, wait - does the Android API &quot;pluralize&quot; the endpoints ? <div><br></div><div style>(e.g. Car.class =&gt; &quot;http:......../cars&quot;)</div><div style><br></div><div style><br></div><div style>
If not, a PipeConfig needs to be applied (endpoint set to cars, for the Car.class)</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jun 3, 2013 at 9:54 AM, Matthias Wessendorf <span dir="ltr">&lt;<a href="mailto:matzew@apache.org" target="_blank">matzew@apache.org</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"><br><div class="gmail_extra"><br><br><div class="gmail_quote"><div class="im">On Mon, Jun 3, 2013 at 9:48 AM, Sebastien Blanc <span dir="ltr">&lt;<a href="mailto:scm.blanc@gmail.com" target="_blank">scm.blanc@gmail.com</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"><br><div class="gmail_extra"><br><br><div class="gmail_quote"><div>On Sat, Jun 1, 2013 at 3:56 PM, Apostolos Emmanouilidis <span dir="ltr">&lt;<a href="mailto:aemmanou@redhat.com" target="_blank">aemmanou@redhat.com</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><u></u>


  
  

<div><div>
<br>
On Sat, 2013-06-01 at 11:45 +0200, Matthias Wessendorf wrote:
<blockquote type="CITE">
    Hi,
</blockquote>
<blockquote type="CITE">
    <br>
    <br>
</blockquote>
<blockquote type="CITE">
    reading [1], I have two questions:
</blockquote>
<blockquote type="CITE">
    <br>
    <br>
</blockquote>
<blockquote type="CITE">
    * the &quot;<a href="http://www.server.com/car" target="_blank">http://www.server.com/car</a>&quot; URL, shouldn&#39;t it be &quot;<a href="http://www.server.com/cars" target="_blank">http://www.server.com/cars</a>&quot; (plural)? 
</blockquote>
<blockquote type="CITE">
    ==&gt; and the later mentioned HTTP methods, e.g. &quot;GET:/car&quot; ==&gt; &quot;GET:/cars&quot;?<br>
</blockquote>
<br></div>
I agree that it should be plural<div><br>
<br>
<blockquote type="CITE">
    <br>
    <br>
</blockquote>
<blockquote type="CITE">
    * Do we really promote the direct access to the RestAdapter, instead of via the Pipeline ?
</blockquote>
<blockquote type="CITE">
    ==&gt; Pipe&lt;Car&gt; pipe = new RestAdapter&lt;pipe&gt;(Car.class, new URL(&quot;<a href="http://www.server.com/" target="_blank">http://www.server.com/</a>&quot;));
</blockquote>
<blockquote type="CITE">
    <br>
</blockquote>
<br></div>
Except that, maybe this line should change to Pipe&lt;Car&gt; pipe = new RestAdapter&lt;<b>Car</b>&gt;(Car.class, new URL(&quot;<b><a href="http://www.server.com/car" target="_blank">http://www.server.com/car</a></b>&quot;)); in order to match the URLs of the described web service. <br>


</div></blockquote><div><br></div><div><br></div></div><div>I don&#39;t know the android details implementation but if we define the URL like and we call a read after that like <span style="background-color:transparent;color:inherit;font-family:Menlo,Monaco,Consolas,&#39;Courier New&#39;,monospace;font-size:12px;line-height:18px;white-space:pre-wrap">pipe.read() won&#39;t we end up with an url like that </span> <b><a href="http://www.server.com/car" target="_blank">http://www.server.com/car</a>/car ?  </b></div>

</div></div></div></blockquote><div><br></div></div><div>yeah, that statement was wrong. I was more concerned, promoting &quot;impl details (RestAdapter) instead of using &quot;public&quot; API: pipeline.pipe(.....);</div>

<div><br></div><div><br></div><div>-Matthias</div><div class="im"><div><br></div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div>
<br>
<blockquote type="CITE">
    <br>
</blockquote>
<blockquote type="CITE">
    Thanks!
</blockquote>
<blockquote type="CITE">
    Matthias
</blockquote>
<blockquote type="CITE">
    <br>
    <br>
</blockquote>
<blockquote type="CITE">
    <br>
    <br>
</blockquote>
<blockquote type="CITE">
    [1] <a href="http://aerogear.org/docs/guides/aerogear-android/AerogearAndroidPipes101/" target="_blank">aerogear.org/docs/guides/aerogear-android/AerogearAndroidPipes101/</a>
</blockquote>
<blockquote type="CITE">
    <br>
    <br>
</blockquote>
<blockquote type="CITE">
<pre>_______________________________________________
aerogear-dev mailing list
<a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a>
</pre>
</blockquote>
<br>
</div>

<br>_______________________________________________<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></blockquote></div></div><br></div></div>
<br>_______________________________________________<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></blockquote></div></div><br><br clear="all"><div class="im"><div><br></div>-- <br>
Matthias Wessendorf <br>
<br>blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>

twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a>
</div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Matthias Wessendorf <br><br>blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>
twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a>
</div>