On Thu, Nov 13, 2014 at 4:21 PM, Matthias Wessendorf <matzew(a)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/...
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(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-dev