[aerogear-dev] REST call -> device registration

Sebastien Blanc scm.blanc at gmail.com
Thu Nov 13 10:51:54 EST 2014


On Thu, Nov 13, 2014 at 4:21 PM, 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
>
> we just say returns 200 :)
>

200 implies that we return the result :
http://en.wikipedia.org/wiki/List_of_HTTP_status_codes#2xx_Success , so not
a big matter it is not documented

>
> 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.
>
If we go that way, I would say 201

>
> Or should we leave all as is ....  not sure ... that's why I am asking
>
> Thanks,
> Matthias
>
> --
> Matthias Wessendorf
>
> blog: http://matthiaswessendorf.wordpress.com/
> sessions: http://www.slideshare.net/mwessendorf
> twitter: 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/ae509ed6/attachment.html 


More information about the aerogear-dev mailing list