Hi,

I added a new feature named 'brief_listing_mode' which fixing a Terremark
issue (and maybe other providers) when a full objects are returned in
'index' action. This can can be a long and slow process, leading to
random HTTP timeouts for clients.

So instead of returning a full object, only URL and id is returned for object.
Details can be obtained using GET method.

Because it's implemented as a 'feature', it doesn't break API for drivers,
which don't have this feature declared.

Also I added an option to return a full object using '&listing_mode=full'.

I enabled this feature for Mock driver for testing supposes and I'll remove it
once this patch will be approved.

To try it out, just start API using Mock driver and:

http://localhost:3001/api/images.xml
http://localhost:3001/api/images.xml?listing_mode=full
http://localhost:3001/api/instances.xml
http://localhost:3001/api/instances.xml?listing_mode=full

 -- Michal

_______________________________________________
deltacloud-devel mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/deltacloud-devel

Reply via email to