deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michal Fojtik <mfoj...@redhat.com>
Subject Re: Updating resources
Date Tue, 27 Nov 2012 13:32:41 GMT
On 11/27, Florin Ardelian wrote:
> Can you explain why the instance ID can't be set to 'edit' in this case?

My mistake, sorry. Of course instance can be set to 'edit', in that case the
url will be 'POST /api/instances/edit/edit'.

> 
> On Tue, Nov 27, 2012 at 1:47 PM, Michal Fojtik <mfojtik@redhat.com> wrote:
> 
> > 3. Using 'POST' (POST /api/instances/inst1/edit?name=new_name):
> >
> > Basically the same thing as 2), but instead of the PATCH HTTP method, we
> > can use the
> >
> > 'POST' method on the 'edit' action. The dark side of this approach is that
> > we are poisioning the URL namespace with '/edit' (that is, the instance ID
> > can't be set to 'edit').
> >
> 
> -- 
> Florin
> +40-740-903838

-- 
Michal Fojtik <mfojtik@redhat.com>
Deltacloud API, CloudForms

Mime
View raw message