<meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>We are fixing the REST API to fit the “Standard”, that would match your request to include IDs. (my fault for knowing the standard/right way)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Sébastien Blanc [via aerogear-dev] [mailto:<a href="/user/SendEmail.jtp?type=node&node=7689&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>] <br><b>Sent:</b> Tuesday, May 06, 2014 12:32 PM<br><b>To:</b> joshuaw<br><b>Subject:</b> Re: [aerogear-dev] contacts-mobile-basic quick start<o:p></o:p></span></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><div><p class=MsoNormal><o:p>&nbsp;</o:p></p><div><p class=MsoNormal style='margin-bottom:12.0pt'><o:p>&nbsp;</o:p></p><div><p class=MsoNormal>On Tue, May 6, 2014 at 6:18 PM, Christos Vasilakis &lt;<a href="/user/SendEmail.jtp?type=node&amp;node=7686&amp;i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>&gt; wrote:<o:p></o:p></p><div><p class=MsoNormal>Hi&nbsp;Joshua,<o:p></o:p></p><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal>my belief is that for PUT, DELETE ops the client should go against /contacts/{id} URI<o:p></o:p></p></div></div><div><p class=MsoNormal>&nbsp;<o:p></o:p></p></div><div><p class=MsoNormal>+1 , The best practice with REST is &nbsp;that an existing resource representation includes the id in the URI.<o:p></o:p></p></div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in'><div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal>Anyone else have a different view of it ?<o:p></o:p></p></div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal>Thanks,<o:p></o:p></p></div><div><p class=MsoNormal>Christos<o:p></o:p></p></div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><div><div><div><div><div><p class=MsoNormal>On May 1, 2014, at 5:32 PM, joshuaw &lt;<a href="/user/SendEmail.jtp?type=node&amp;node=7686&amp;i=1" target="_top" rel="nofollow" link="external">[hidden email]</a>&gt; wrote:<o:p></o:p></p></div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div></div><blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' style='border:none;border-left:solid #CCCCCC 1.5pt;padding:0in 0in 0in 12.0pt;margin-top:5.0pt;margin-bottom:5.0pt'><div><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Christos,</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>&nbsp;</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>To answer a) since the Contact is being passed in, it is not necessary to also pass in the ID.&nbsp; For PUT all the information needs to be passed back for the update. While the DELETE only needs the ID, the whole contact is being sent.&nbsp; </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>&nbsp;</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I am open to discussing this if you think there is something wrong with the design.</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>&nbsp;</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Joshua</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>&nbsp;</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Christos Vasilakis [via aerogear-dev] [mailto:[hidden email]] <br><b>Sent:</b> Thursday, May 01, 2014 7:27 AM<br><b>To:</b> joshuaw<br><b>Subject:</b> Re: [aerogear-dev] contacts-mobile-basic quick start</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>&nbsp;<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Hi everyone, <br><br>have started working on the iOS native client of the contacts quick start app. Based on edewit branch[1] (which creates a contact on signup of a user) have created an initial version of the iOS client and you can find it here [2], together with a screencast showcasing the app in action [3]. <br><br>Some comments observed during writing of the application which would like your feedback: <br><br>a) &nbsp;for PUT, DELETE operations noticed that the jax-rs backend expects the id of the Contact to be present in the body of the request. Not sure why this was chosen instead of @Path(“id”) resulting against /contacts/{id} ? <br><br>b) currently roles are used to distinguish between who is able to create/update/delete contact. When a user signs up (and contact is created), &nbsp;by default the user is _not_ able to apply any CRUD operations apart from viewing (any operation results in unauthorised error). If we agree on this behaviour, would like to know how can I determine the role of the user (in order to update the UI accordingly, eg. disabling add,edit UI elements). Looking at the json response upon login of the user, couldn’t determine a “key” that specifies the role (apart from an “admin” key which stayed the same regardless of the type of the user). <br><br><br>Thanks, <br>Christos <br><br>[1] <a href="https://github.com/edewit/jboss-wfk-quickstarts/tree/push_and_secured" target="_blank" rel="nofollow" link="external">https://github.com/edewit/jboss-wfk-quickstarts/tree/push_and_secured</a><br>[2] <a href="https://github.com/cvasilak/aerogear-push-quickstarts/tree/ios" target="_blank" rel="nofollow" link="external">https://github.com/cvasilak/aerogear-push-quickstarts/tree/ios</a><br>[3] <a href="https://vimeo.com/93471554" target="_blank" rel="nofollow" link="external">https://vimeo.com/93471554</a><br><br><br><br>On Apr 23, 2014, at 5:43 PM, Erik Jan de Wit &lt;[hidden email]&gt; wrote: <o:p></o:p></p><div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal><div class='shrinkable-quote'><br>&gt; Right, that makes sense, so let’s not join them. The alternate thing to do is to create a contact on sign up, because if you want to receive push notifications at least you should be in the list of contacts. We will still need to change the sign up page a little as we need a phone number and a birth date as well in order to create a contact. <br>&gt; <br>&gt; On 23 Apr,2014, at 16:26 , Burr Sutter &lt;[hidden email]&gt; wrote: <br>&gt; <br>&gt;&gt; These are not strongly held opinions <br>&gt;&gt; <br>&gt;&gt; One reason to keep Users &amp; Contacts separate is...because that is normal for the average enterprise app - your have employees (users) and customers (contacts) - employees/users have different roles/privileges from customers. <br>&gt;&gt; <br>&gt;&gt; The reason they are separated in the secured (PL) version of contacts-mobile-basic is because it simply evolved that way - contacts came first - users/roles added after the fact. &nbsp; Ideally we would not modify the original too much as it allows a nice learning progression - start with the original contacts-mobile-basic, then upgrade to contacts-mobile-basic-secured, then upgrade to contacts-mobile-basic-secured-cordova (names just made up). <br>&gt;&gt; <br>&gt;&gt; <br>&gt;&gt; On Apr 23, 2014, at 10:16 AM, Sébastien Blanc &lt;[hidden email]&gt; wrote: <br>&gt;&gt; <br>&gt;&gt;&gt; Sure ! <br>&gt;&gt;&gt; Be sure to check this with Joshua as he drives the backend bits <br>&gt;&gt;&gt; Sébi <br>&gt;&gt;&gt; <br>&gt;&gt;&gt; Envoyé de mon iPhone <br>&gt;&gt;&gt; <br>&gt;&gt;&gt;&gt; Le 23 avr. 2014 à 15:56, Erik Jan de Wit &lt;[hidden email]&gt; a écrit : <br>&gt;&gt;&gt;&gt; <br>&gt;&gt;&gt;&gt; Hi, <br>&gt;&gt;&gt;&gt; <br>&gt;&gt;&gt;&gt; How about merging the User model and the Contact into one entity? Seems like they have a lot in common, do we really need 2? <br>&gt;&gt;&gt;&gt; <br>&gt;&gt;&gt;&gt; Cheers, <br>&gt;&gt;&gt;&gt; Erik Jan <br>&gt;&gt;&gt;&gt; <br>&gt;&gt;&gt;&gt;&gt; On 23 Apr,2014, at 14:34 , Sébastien Blanc &lt;[hidden email]&gt; wrote: <br>&gt;&gt;&gt;&gt;&gt; <br>&gt;&gt;&gt;&gt;&gt; We should be using the email as alias and the email should also be used as login when registering in the secured part. A registration should also trigger the creation of that user / contact in the application. <br>&gt;&gt;&gt;&gt;&gt; Author can be left empty By the client and filled by the backend . <a href="https://github.com/sebastienblanc/jboss-wfk-quickstarts/tree/push_and_securedAuthor" target="_blank" rel="nofollow" link="external">https://github.com/sebastienblanc/jboss-wfk-quickstarts/tree/push_and_securedAuthor</a>&nbsp;must stay because the receiver must know who sends the message. <br>&gt;&gt;&gt;&gt;&gt; <br>&gt;&gt;&gt;&gt;&gt; Envoyé de mon iPhone <br>&gt;&gt;&gt;&gt;&gt; <br>&gt;&gt;&gt;&gt;&gt;&gt; Le 23 avr. 2014 à 13:35, Erik Jan de Wit &lt;[hidden email]&gt; a écrit : <br>&gt;&gt;&gt;&gt;&gt;&gt; <br>&gt;&gt;&gt;&gt;&gt;&gt; Hi, <br>&gt;&gt;&gt;&gt;&gt;&gt; <br>&gt;&gt;&gt;&gt;&gt;&gt; I was working on the aerogear-push-quickstarts for Cordova and was wondering what to put for the alias on registration. The version that is there now has users that logs in and contacts that are fetched. What seems to be missing is that everybody gets all contacts instead of just mine (maybe that is fine), but users that sign up for the app are not contacts. So when I want to send a message to a specific mobile user they are not in my list and there is no way to have to define an alias to send to. <br>&gt;&gt;&gt;&gt;&gt;&gt; <br>&gt;&gt;&gt;&gt;&gt;&gt; Also the interface for sending push notifications includes a author. I think it would be better if we remove this and let the service put in the logged in user. That way you can’t pretend to send a message like someone else. <br>&gt;&gt;&gt;&gt;&gt;&gt; <br>&gt;&gt;&gt;&gt;&gt;&gt; What do you think? <br>&gt;&gt;&gt;&gt;&gt;&gt; <br>&gt;&gt;&gt;&gt;&gt;&gt; Cheers, <br>&gt;&gt;&gt;&gt;&gt;&gt; Erik Jan <br>&gt;&gt;&gt;&gt;&gt;&gt; _______________________________________________ <br>&gt;&gt;&gt;&gt;&gt;&gt; aerogear-dev mailing list <br>&gt;&gt;&gt;&gt;&gt;&gt; [hidden email] <br>&gt;&gt;&gt;&gt;&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank" rel="nofollow" link="external">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>&gt;&gt;&gt;&gt;&gt; <br>&gt;&gt;&gt;&gt;&gt; _______________________________________________ <br>&gt;&gt;&gt;&gt;&gt; aerogear-dev mailing list <br>&gt;&gt;&gt;&gt;&gt; [hidden email] <br>&gt;&gt;&gt;&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank" rel="nofollow" link="external">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>&gt;&gt;&gt;&gt; <br>&gt;&gt;&gt;&gt; <br>&gt;&gt;&gt;&gt; _______________________________________________ <br>&gt;&gt;&gt;&gt; aerogear-dev mailing list <br>&gt;&gt;&gt;&gt; [hidden email] <br>&gt;&gt;&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank" rel="nofollow" link="external">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>&gt;&gt;&gt; <br>&gt;&gt;&gt; _______________________________________________ <br>&gt;&gt;&gt; aerogear-dev mailing list <br>&gt;&gt;&gt; [hidden email] <br>&gt;&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank" rel="nofollow" link="external">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>&gt;&gt; <br>&gt;&gt; <br>&gt;&gt; _______________________________________________ <br>&gt;&gt; aerogear-dev mailing list <br>&gt;&gt; [hidden email] <br>&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank" rel="nofollow" link="external">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>&gt; <br>&gt; <br>&gt; _______________________________________________ <br>&gt; aerogear-dev mailing list <br>&gt; [hidden email] <br>&gt; <a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank" rel="nofollow" link="external">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><o:p></o:p></p><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div></div><div style='margin-bottom:12.0pt'><p class=MsoNormal><o:p>&nbsp;</o:p></p></div></div><p class=MsoNormal style='margin-bottom:12.0pt'></div>_______________________________________________ <br>aerogear-dev mailing list <br>[hidden email] <br><a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank" rel="nofollow" link="external">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><o:p></o:p></p><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><div class=MsoNormal align=center style='text-align:center'><hr size=1 width="100%" noshade style='color:#CCCCCC' align=center></div><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><span style='font-size:9.0pt;font-family:"Tahoma","sans-serif";color:#444444'>If you reply to this email, your message will be added to the discussion below:</span></b><o:p></o:p></p></div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:9.0pt;font-family:"Tahoma","sans-serif";color:#444444'><a href="http://aerogear-dev.1069024.n5.nabble.com/aerogear-dev-contacts-mobile-basic-quick-start-tp7534p7636.html" target="_blank" rel="nofollow" link="external">http://aerogear-dev.1069024.n5.nabble.com/aerogear-dev-contacts-mobile-basic-quick-start-tp7534p7636.html</a> </span><o:p></o:p></p></div><div style='margin-top:4.8pt'><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:18.0pt'><span style='font-size:8.5pt;font-family:"Tahoma","sans-serif";color:#666666'>To start a new topic under aerogear-dev, email [hidden email] <br>To unsubscribe from aerogear-dev, click here.<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.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-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" target="_blank" rel="nofollow" link="external"><span style='font-size:7.0pt;font-family:"Times New Roman","serif"'>NAML</span></a> </span><o:p></o:p></p></div></div><p class=MsoNormal><o:p>&nbsp;</o:p></p><div class=MsoNormal><hr size=2 width=300 style='width:225.0pt' align=left></div><p class=MsoNormal>View this message in context: <a href="http://aerogear-dev.1069024.n5.nabble.com/aerogear-dev-contacts-mobile-basic-quick-start-tp7534p7637.html" target="_blank" rel="nofollow" link="external">RE: [aerogear-dev] contacts-mobile-basic quick start</a><br>Sent from the <a href="http://aerogear-dev.1069024.n5.nabble.com/" target="_blank" rel="nofollow" link="external">aerogear-dev mailing list archive</a> at <a href="http://Nabble.com" target="_blank" rel="nofollow" link="external">Nabble.com</a>.<o:p></o:p></p></div></div><div><p class=MsoNormal>_______________________________________________<br>aerogear-dev mailing list<br><a href="/user/SendEmail.jtp?type=node&amp;node=7686&amp;i=2" target="_top" rel="nofollow" link="external">[hidden email]</a><br><a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank" rel="nofollow" link="external">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><o:p></o:p></p></div></blockquote></div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div></div></div><p class=MsoNormal><br>_______________________________________________<br>aerogear-dev mailing list<br><a href="/user/SendEmail.jtp?type=node&amp;node=7686&amp;i=3" target="_top" rel="nofollow" link="external">[hidden email]</a><br><a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank" rel="nofollow" link="external">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><o:p></o:p></p></blockquote></div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div></div><p class=MsoNormal style='margin-bottom:12.0pt'><br>_______________________________________________ <br>aerogear-dev mailing list <br><a href="/user/SendEmail.jtp?type=node&amp;node=7686&amp;i=4" target="_top" rel="nofollow" link="external">[hidden email]</a> <br><a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_top" rel="nofollow" link="external">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a> <o:p></o:p></p><div class=MsoNormal align=center style='text-align:center'><hr size=1 width="100%" noshade style='color:#CCCCCC' align=center></div><div><div><p class=MsoNormal><b><span style='font-size:9.0pt;font-family:"Tahoma","sans-serif";color:#444444'>If you reply to this email, your message will be added to the discussion below:<o:p></o:p></span></b></p></div><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Tahoma","sans-serif";color:#444444'><a href="http://aerogear-dev.1069024.n5.nabble.com/aerogear-dev-contacts-mobile-basic-quick-start-tp7534p7686.html" target="_top" rel="nofollow" link="external">http://aerogear-dev.1069024.n5.nabble.com/aerogear-dev-contacts-mobile-basic-quick-start-tp7534p7686.html</a> <o:p></o:p></span></p></div><div style='margin-top:4.8pt'><p class=MsoNormal style='line-height:18.0pt'><span style='font-size:8.5pt;font-family:"Tahoma","sans-serif";color:#666666'>To start a new topic under aerogear-dev, email <a href="/user/SendEmail.jtp?type=node&node=7689&i=1" target="_top" rel="nofollow" link="external">[hidden email]</a> <br>To unsubscribe from aerogear-dev, <a href="" target="_top" 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.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-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" target="_top" rel="nofollow" link="external"><span style='font-size:7.0pt;font-family:"Times New Roman","serif"'>NAML</span></a> <o:p></o:p></span></p></div></div>

        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://aerogear-dev.1069024.n5.nabble.com/aerogear-dev-contacts-mobile-basic-quick-start-tp7534p7689.html">RE: [aerogear-dev] contacts-mobile-basic quick start</a><br/>
Sent from the <a href="http://aerogear-dev.1069024.n5.nabble.com/">aerogear-dev mailing list archive</a> at Nabble.com.<br/>