[aerogear-dev] REST call -> device registration

Lucas Holmquist lholmqui at redhat.com
Thu Nov 13 10:25:56 EST 2014


> On Nov 13, 2014, at 10:21 AM, Matthias Wessendorf <matzew at apache.org> wrote:
> 
> Hi,
> 
> atm the device registration (unfortunately?) returns the object (installation). However, (fortunately?) this is not really documented:
> http://aerogear.org/docs/specs/aerogear-unifiedpush-rest/registry/device/index.html <http://aerogear.org/docs/specs/aerogear-unifiedpush-rest/registry/device/index.html>
> 
> we just say returns 200 :)
> 
> I'd like to ask, if we should NOT return the entity, and simply return "200" - with "registered/updated"? 
> 
> Another option would be 204, but that's a problematic API change.... since we change the status code.
> 
> Or should we leave all as is ....  not sure ... that's why I am asking 

whats the potential problem that could exist if we leave it alone?

> 
> Thanks,
> Matthias
> 
> -- 
> Matthias Wessendorf 
> 
> blog: http://matthiaswessendorf.wordpress.com/ <http://matthiaswessendorf.wordpress.com/>
> sessions: http://www.slideshare.net/mwessendorf <http://www.slideshare.net/mwessendorf>
> twitter: http://twitter.com/mwessendorf <http://twitter.com/mwessendorf>_______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20141113/76e60767/attachment.html 


More information about the aerogear-dev mailing list