[aerogear-dev] UPS: Changing response of variant endpoint for Network details updates?

Matthias Wessendorf matzew at apache.org
Fri Dec 4 09:33:32 EST 2015


Hi,

currently when updating the network details, we do a PUT and srver returns
204 - not content, see:
https://github.com/aerogear/aerogear-unifiedpush-server/blob/master/jaxrs/src/main/java/org/jboss/aerogear/unifiedpush/rest/registry/applications/AndroidVariantEndpoint.java#L112-L142


I wonder if we should actually return the updated values as part of the the
response  - this would mean we will be consistent to the endpoint to update
the secret. There we do a PUT as well, but reasonably return the updated
entity:
https://github.com/aerogear/aerogear-unifiedpush-server/blob/master/jaxrs/src/main/java/org/jboss/aerogear/unifiedpush/rest/registry/applications/AbstractVariantEndpoint.java#L61-L78

This means, it's also easier to actually integrate the entire REST APIs
into other, larger systems.

Any thoughts?
-Matthias

-- 
Matthias Wessendorf

blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20151204/a2e3e4ff/attachment.html 


More information about the aerogear-dev mailing list