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

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Matthias Wessendorf
Hi,

currently when updating the network details, we do a PUT and srver returns 204 - not content, see:


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:

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

Any thoughts?
-Matthias

--

_______________________________________________
aerogear-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-dev
Reply | Threaded
Open this post in threaded view
|

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

Wei Li
+1.

This is something we will need to integrate UPS with RHMAP. At the moment, when user updates the network details for android push, we don't get the updated data back from UPS, which means we can't update the the apps with the correct information. We can issue another GET request for it, but it is a PITA and ideally we would expect the PUT endpoint should return the full data rather than just a status code.

Thanks.

Regards,
Wei Li

On Fri, Dec 4, 2015 at 2:33 PM, Matthias Wessendorf <[hidden email]> wrote:
Hi,

currently when updating the network details, we do a PUT and srver returns 204 - not content, see:


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:

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

Any thoughts?
-Matthias

--

_______________________________________________
aerogear-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-dev



--
Wei Li
Red Hat email address: [hidden email]
Senior Software Engineer

_______________________________________________
aerogear-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-dev