<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 13, 2014 at 4:21 PM, 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:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>atm the device registration (unfortunately?) returns the object (installation). However, (fortunately?) this is not really documented:</div><div><a href="http://aerogear.org/docs/specs/aerogear-unifiedpush-rest/registry/device/index.html" target="_blank">http://aerogear.org/docs/specs/aerogear-unifiedpush-rest/registry/device/index.html</a></div><div><br></div><div>we just say returns 200 :)</div></div></blockquote><div> </div><div>200 implies that we return the result : <a href="http://en.wikipedia.org/wiki/List_of_HTTP_status_codes#2xx_Success">http://en.wikipedia.org/wiki/List_of_HTTP_status_codes#2xx_Success</a> , so not a big matter it is not documented </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 dir="ltr"><div><br></div><div>I&#39;d like to ask, if we should NOT return the entity, and simply return &quot;200&quot; - with &quot;registered/updated&quot;? </div><div><br></div><div>Another option would be 204, but that&#39;s a problematic API change.... since we change the status code.</div></div></blockquote><div>If we go that way, I would say 201 </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 dir="ltr"><div><br></div><div>Or should we leave all as is ....  not sure ... that&#39;s why I am asking </div><div><br></div><div>Thanks,</div><div>Matthias<span class=""><font color="#888888"><br clear="all"><div><br></div>-- <br><div>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>
</font></span></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></div>