<div dir="ltr">nice!<div><br></div><div>that should be enough for the mobile clients, right ? </div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jun 14, 2013 at 3:21 PM, 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">Ok,<div>We got here a first set of services which should be enough for the demo purposes : </div><div><br>
</div><div><h2 style="font-weight:normal;color:rgb(17,17,17);line-height:1em;font-size:2em;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:silver;padding-bottom:5px;font-family:Georgia,Palatino,&#39;Palatino Linotype&#39;,Times,&#39;Times New Roman&#39;,&#39;Hiragino Sans GB&#39;,STXihei,微软雅黑,serif">

<code style="color:rgb(0,0,0);font-size:0.88em;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;background-color:rgb(248,248,248);border:1px solid rgb(204,204,204);padding:0px 3px">POST /login</code></h2>

<p style="margin:1em 0px;color:rgb(68,68,68);font-family:Georgia,Palatino,&#39;Palatino Linotype&#39;,Times,&#39;Times New Roman&#39;,&#39;Hiragino Sans GB&#39;,STXihei,微软雅黑,serif;font-size:16px;line-height:24px">Login service, mandatory for all further request.</p>

<pre style="line-height:24px;border-top-right-radius:3px;border-bottom-right-radius:3px;font-size:0.88em;white-space:pre-wrap;background-color:rgb(248,248,248);border-top-left-radius:3px;word-wrap:break-word;padding:5px 12px;border:1px solid rgb(204,204,204);border-bottom-left-radius:3px">
<code style="font-size:0.88em;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;padding:0px;border:0px!important">curl -v -b cookies.txt -c cookies.txt -H &quot;Accept: application/json&quot; -H &quot;Content-type: application/json&quot;
-X POST -d &#39;{&quot;loginName&quot;: &quot;john&quot;, &quot;password&quot;:&quot;123&quot;}&#39; <a href="http://localhost:8080/prodoctor/login" target="_blank">http://localhost:8080/prodoctor/login</a> 
</code></pre><p style="margin:1em 0px;color:rgb(68,68,68);font-family:Georgia,Palatino,&#39;Palatino Linotype&#39;,Times,&#39;Times New Roman&#39;,&#39;Hiragino Sans GB&#39;,STXihei,微软雅黑,serif;font-size:16px;line-height:24px">

It will return the user :</p><pre style="line-height:24px;border-top-right-radius:3px;border-bottom-right-radius:3px;font-size:0.88em;white-space:pre-wrap;background-color:rgb(248,248,248);border-top-left-radius:3px;word-wrap:break-word;padding:5px 12px;border:1px solid rgb(204,204,204);border-bottom-left-radius:3px">
<code style="font-size:0.88em;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;padding:0px;border:0px!important"> {&quot;id&quot;:&quot;cb3c05aa-3fdd-4b4e-9b90-386fc7e5671a&quot;,&quot;enabled&quot;:true,&quot;createdDate&quot;:1371215851063,&quot;expirationDate&quot;:null,&quot;partition&quot;:null,&quot;loginName&quot;:&quot;john&quot;,&quot;firstName&quot;:null,&quot;lastName&quot;:null,&quot;email&quot;:null,&quot;status&quot;:&quot;PTO&quot;,&quot;password&quot;:&quot;123&quot;,&quot;location&quot;:&quot;New York&quot;}
</code></pre><h2 style="font-weight:normal;color:rgb(17,17,17);line-height:1em;font-size:2em;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:silver;padding-bottom:5px;font-family:Georgia,Palatino,&#39;Palatino Linotype&#39;,Times,&#39;Times New Roman&#39;,&#39;Hiragino Sans GB&#39;,STXihei,微软雅黑,serif">

<code style="color:rgb(0,0,0);font-size:0.88em;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;background-color:rgb(248,248,248);border:1px solid rgb(204,204,204);padding:0px 3px">POST /logout</code></h2>

<p style="margin:1em 0px;color:rgb(68,68,68);font-family:Georgia,Palatino,&#39;Palatino Linotype&#39;,Times,&#39;Times New Roman&#39;,&#39;Hiragino Sans GB&#39;,STXihei,微软雅黑,serif;font-size:16px;line-height:24px">Logout service.</p>

<pre style="line-height:24px;border-top-right-radius:3px;border-bottom-right-radius:3px;font-size:0.88em;white-space:pre-wrap;background-color:rgb(248,248,248);border-top-left-radius:3px;word-wrap:break-word;padding:5px 12px;border:1px solid rgb(204,204,204);border-bottom-left-radius:3px">
<code style="font-size:0.88em;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;padding:0px;border:0px!important">curl -v -b cookies.txt -c cookies.txt -H &quot;Accept: application/json&quot; -H &quot;Content-type: application/json&quot;
-X POST -d &#39;{&quot;loginName&quot;: &quot;john&quot;, &quot;password&quot;:&quot;123&quot;}&#39; <a href="http://localhost:8080/prodoctor/logout" target="_blank">http://localhost:8080/prodoctor/logout</a> 
</code></pre><p style="margin:1em 0px;color:rgb(68,68,68);font-family:Georgia,Palatino,&#39;Palatino Linotype&#39;,Times,&#39;Times New Roman&#39;,&#39;Hiragino Sans GB&#39;,STXihei,微软雅黑,serif;font-size:16px;line-height:24px">

returns no data</p><h2 style="font-weight:normal;color:rgb(17,17,17);line-height:1em;font-size:2em;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:silver;padding-bottom:5px;font-family:Georgia,Palatino,&#39;Palatino Linotype&#39;,Times,&#39;Times New Roman&#39;,&#39;Hiragino Sans GB&#39;,STXihei,微软雅黑,serif">

<code style="color:rgb(0,0,0);font-size:0.88em;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;background-color:rgb(248,248,248);border:1px solid rgb(204,204,204);padding:0px 3px">GET /leads</code></h2>

<p style="margin:1em 0px;color:rgb(68,68,68);font-family:Georgia,Palatino,&#39;Palatino Linotype&#39;,Times,&#39;Times New Roman&#39;,&#39;Hiragino Sans GB&#39;,STXihei,微软雅黑,serif;font-size:16px;line-height:24px">Obtain a list of leads.</p>

<pre style="line-height:24px;border-top-right-radius:3px;border-bottom-right-radius:3px;font-size:0.88em;white-space:pre-wrap;background-color:rgb(248,248,248);border-top-left-radius:3px;word-wrap:break-word;padding:5px 12px;border:1px solid rgb(204,204,204);border-bottom-left-radius:3px">
<code style="font-size:0.88em;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;padding:0px;border:0px!important"> curl -v -b cookies.txt -c cookies.txt -H &quot;Accept: application/json&quot; -H &quot;Content-type: application/json&quot; 
-X GET -d &#39;{&quot;loginName&quot;: &quot;john&quot;, &quot;password&quot;:&quot;123&quot;}&#39; <a href="http://localhost:8080/prodoctor/leads" target="_blank">http://localhost:8080/prodoctor/leads</a> 
</code></pre><p style="margin:1em 0px;color:rgb(68,68,68);font-family:Georgia,Palatino,&#39;Palatino Linotype&#39;,Times,&#39;Times New Roman&#39;,&#39;Hiragino Sans GB&#39;,STXihei,微软雅黑,serif;font-size:16px;line-height:24px">

You will get a list of leads :</p><pre style="line-height:24px;border-top-right-radius:3px;border-bottom-right-radius:3px;font-size:0.88em;white-space:pre-wrap;background-color:rgb(248,248,248);border-top-left-radius:3px;word-wrap:break-word;padding:5px 12px;border:1px solid rgb(204,204,204);border-bottom-left-radius:3px">
<code style="font-size:0.88em;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;padding:0px;border:0px!important">[{&quot;id&quot;:39,&quot;version&quot;:0,&quot;name&quot;:&quot;Doctor No&quot;,&quot;location&quot;:&quot;New York&quot;,&quot;phoneNumber&quot;:&quot;<a href="tel:0612412121" value="+49612412121" target="_blank">0612412121</a>&quot;}]
</code></pre><h2 style="font-weight:normal;color:rgb(17,17,17);line-height:1em;font-size:2em;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:silver;padding-bottom:5px;font-family:Georgia,Palatino,&#39;Palatino Linotype&#39;,Times,&#39;Times New Roman&#39;,&#39;Hiragino Sans GB&#39;,STXihei,微软雅黑,serif">

<code style="color:rgb(0,0,0);font-size:0.88em;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;background-color:rgb(248,248,248);border:1px solid rgb(204,204,204);padding:0px 3px">PUT /saleagents/{id}</code></h2>

<p style="margin:1em 0px;color:rgb(68,68,68);font-family:Georgia,Palatino,&#39;Palatino Linotype&#39;,Times,&#39;Times New Roman&#39;,&#39;Hiragino Sans GB&#39;,STXihei,微软雅黑,serif;font-size:16px;line-height:24px">update a SaleAgent, the service will only update the status and the location for now.</p>

<pre style="line-height:24px;border-top-right-radius:3px;border-bottom-right-radius:3px;font-size:0.88em;white-space:pre-wrap;background-color:rgb(248,248,248);border-top-left-radius:3px;word-wrap:break-word;padding:5px 12px;border:1px solid rgb(204,204,204);border-bottom-left-radius:3px">
<code style="font-size:0.88em;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;padding:0px;border:0px!important"> curl -v -b cookies.txt -c cookies.txt -H &quot;Accept: application/json&quot; -H &quot;Content-type: application/json&quot; -X PUT -d &#39;{&quot;id&quot;:&quot;13bbaea3-9271-43f7-80aa-fb21360ff684&quot;,&quot;enabled&quot;:true,&quot;createdDate&quot;:1371213256827,&quot;expirationDate&quot;:null,&quot;partition&quot;:null,&quot;loginName&quot;:&quot;john&quot;,&quot;firstName&quot;:null,&quot;lastName&quot;:null,&quot;email&quot;:null,&quot;version&quot;:0,&quot;status&quot;:&quot;CHANGED&quot;,&quot;password&quot;:&quot;123&quot;,&quot;location&quot;:&quot;New York&quot;}&#39; <a href="http://localhost:8080/prodoctor/saleagents/13bbaea3-9271-43f7-80aa-fb21360ff684" target="_blank">http://localhost:8080/prodoctor/saleagents/13bbaea3-9271-43f7-80aa-fb21360ff684</a>
</code></pre><p style="margin:1em 0px;color:rgb(68,68,68);font-family:Georgia,Palatino,&#39;Palatino Linotype&#39;,Times,&#39;Times New Roman&#39;,&#39;Hiragino Sans GB&#39;,STXihei,微软雅黑,serif;font-size:16px;line-height:24px">

returns no data</p></div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Fri, Jun 14, 2013 at 10:21 AM, Matthias Wessendorf <span dir="ltr">&lt;<a href="mailto:matzew@apache.org" target="_blank">matzew@apache.org</a>&gt;</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">w00t!!!!<div><div><span></span><br><br>On Friday, June 14, 2013, Sebastien Blanc  wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">A quick update :<div><br>
</div><div>A first version of the backend application has been created and be found here <a href="https://github.com/sebastienblanc/aerogear-push-quickstart-backend/" target="_blank">https://github.com/sebastienblanc/aerogear-push-quickstart-backend/</a> </div>



<div>You can create Leads, then query for Sale Agents and send them a push notification containing the lead information.</div><div><br></div><div>The readme contains all the intructions. We made some tests with Matzew yesterday and we were able to send notification from the backend app to an Android Device, using of course, the Push Server : this means we have the complete loop working , yeah ! </div>



<div><br></div><div>I will now work on the API of the Prodoctor app that will be used by the Native Clients.</div><div><br></div><div>Seb</div><div><br></div></div><div><br>
<br><div>On Thu, Jun 13, 2013 at 11:33 AM, Matthias Wessendorf <span dir="ltr">&lt;<a>matzew@apache.org</a>&gt;</span> wrote:<br><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Repo suggestions:<div><br></div><div><ul style="line-height:15.454545021057129px;font-size:12.727272033691406px;font-family:Arial,FreeSans,Helvetica,sans-serif;margin:16px 0px 0px;padding:0px 0px 0px 24px">




<li style="margin:0px;padding:0px">aerogear-push-quickstart-android</li><li style="margin:0px;padding:0px">aerogear-push-quickstart-backend</li><li style="margin:0px;padding:0px">aerogear-push-quickstart-ios</li></ul><div>




<font color="#000000" face="Arial, FreeSans, Helvetica, sans-serif"><span style="line-height:15.453125px"><br></span></font></div></div><div><font color="#000000" face="Arial, FreeSans, Helvetica, sans-serif"><span style="line-height:15.453125px"><br>




</span></font></div><div><font color="#000000" face="Arial, FreeSans, Helvetica, sans-serif"><span style="line-height:15.453125px">JIRA =&gt; <a href="https://issues.jboss.org/browse/AEROGEAR-1261" target="_blank">https://issues.jboss.org/browse/AEROGEAR-1261</a></span></font></div>




<div><font color="#000000" face="Arial, FreeSans, Helvetica, sans-serif"><span style="line-height:15.453125px"><br></span></font></div></div><div><div><div><br><br><div>
On Wed, Jun 12, 2013 at 3:34 PM, Matthias Wessendorf <span dir="ltr">&lt;<a>matzew@apache.org</a>&gt;</span> wrote:<br>
<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div><br><br><div><div>On Wed, Jun 12, 2013 at 3:29 PM, Summers Pittman <span dir="ltr">&lt;<a>supittma@redhat.com</a>&gt;</span> wrote:<br>





<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000"><div>
    <div>On 06/12/2013 09:26 AM, Corinne Krych
      wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">I like summers idea of replacing the popup when app
        is open with leads list.<br>
        If you are in the leads list, the list could be updated but we
        still need some visual effect to say &quot;new lead&quot; maybe bold font
        with new icon.<br>
      </div>
    </blockquote></div>
    In the Google Plus application the refresh button becomes
    highlighted if there is new data. (As a suggestion).<br></div></blockquote><div><br></div></div><div>Or... confirm the &quot;popup&quot; and have the list refresh. A color (on the new lead) is fading out :)</div><div>




<div><div>
<br></div><div> </div><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="#FFFFFF" text="#000000">
    <br>
    Or we could add the entry and have a special style applied.<div><div><br>
    <br>
    <blockquote type="cite">
      <div dir="ltr">
      </div>
      <div><br>
        <br>
        <div>On 12 June 2013 15:20, Summers Pittman
          <span dir="ltr">&lt;<a>supittma@redhat.com</a>&gt;</span>
          wrote:<br>
          <blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000">
              <div>In Android land you wouldn&#39;t do a popup.  If the app
                is in the background you would put a notification in the
                drawer which the user may dismiss or interact with.<br>
                <br>
                If you are in the application it would probably be
                better to update the leads data store and send an update
                event.  If the Leads are being browsed they can be
                updated.  If they aren&#39;t then a badge could appear on
                the leads action.
                <div>
                  <div><br>
                    <br>
                    On 06/12/2013 04:52 AM, Sebastien Blanc wrote:<br>
                  </div>
                </div>
              </div>
              <div>
                <div>
                  <blockquote type="cite">
                    <div dir="ltr">Ok, there seems to be some agreement
                      on the idea, Nice ! 
                      <div>Let&#39;s focus a bit on the Mobile App. As said
                        before, it must stay really simple, so basically
                        that&#39;s what the apps does : </div>
                      <div> <br>
                      </div>
                      </div></blockquote></div></div></div></blockquote></div></div></blockquote></div></div></div></blockquote></div></div></div></div></div></blockquote></div></div></div></div></blockquote></div></div>


</blockquote><br><br></div></div><div><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><br>
</div></div><br></div></div><div class="im">_______________________________________________<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></div></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></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>