[openstack-dev] [sahara] update methods

Luigi Toscano ltoscano at redhat.com
Wed Aug 5 17:31:05 UTC 2015


On Wednesday 05 of August 2015 11:14:13 michael mccune wrote:
> hey all,
> 
> the recent discussions[1] on updating resources through the rest api has
> got me thinking that it might be worthwhile to convert the few methods
> we have implemented to use PATCH instead of PUT.
> 
> we are starting to create a bifurcation in the api regarding updates.
> the new suspend/resume job functionality is using PATCH and the object
> updating is proposing using PUT. i agree with Andrey's thinking that we
> have been using PUT as if it were a PATCH, but i think we should just
> fix this inaccuracy before we go further.
> 
> i'm ok with leaving the scaling operation as a PUT for now as it uses
> slightly different logic in the body. but i think we should fix the node
> group template, cluster template, job binary, and data source update
> methods to be PATCH instead of PUT. is there any objection to me
> creating reviews to fix this inaccuracy?

Isn't this an API change, which would require an API bump?
A reason more to keep it working as it is with 1.x and go fast to 2.0.

Ciao
-- 
Luigi




More information about the OpenStack-dev mailing list