[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [rest-practices] Variable responses



On Thu, 2010-05-06 at 16:40 -0700, David Lutterkort wrote:

> 
> Creating a new instance
> -----------------------
> 
> In a similar vein, right now, when creating a new instance with a
> POST /api/instances, we return the full XML representation of the new
> instance. For some clouds (again, Terremark is the posterboy), this
> actually requires two calls inside the Deltacloud driver: one to create
> the instance, and one to retrieve the details of that new instance.
> Besides being a little slow, this is also very fragile, in that the
> instance creation might succeed, but retrieving details might fail,
> making it, at the very least, hard to indicate to the client what just
> happened.
> 
> For that case, too, I'd like to change the API definition so that you
> will always get the URL for the instance details in a Location: header
> or abridged XML in the body, and full details only when they can be
> provided cheaply.


Whoops, I didn't realise this discussion had moved to rest-practices
before replying on deltacloud-devel.

Here's a slightly wacky idea on fabricating a minimal representation
from the returned URI:  

https://fedorahosted.org/pipermail/deltacloud-devel/2010-May/001125.html 

/Eoghan


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]