incubator-deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michal Fojtik <mfoj...@redhat.com>
Subject Re: Make drivers a toplevel collection (rev 2)
Date Wed, 30 Mar 2011 09:30:24 GMT
On Mar 30, 2011, at 1:35 AM, lutter@redhat.com wrote:

ACK to whole patchset.

  -- Michal

> This repost addresses the issues Michal found; specifically (1) the view
> templates for drivers are now included and (2) unit tests actually work
> 
> Original post:
> 
> We've had an XML representation of drivers supported by the server as a
> one-off page for a while now. In keeping with HATEAOS, the list of drivers
> should be reachable through the main API entry point.
> 
> To make that possible, I turned drivers into their own toplevel
> collection. I also changed the XML format for a driver to emphasize the
> list of possible provider values more. For the EC2 driver the XML now is:
> 
>  <driver href="http://localhost:3001/api/drivers/ec2" id="ec2">
>    <name>EC2</name>
> 
>    <provider id="us-west-1">
>      <entrypoint kind="s3">s3-us-west-1.amazonaws.com</entrypoint>
>      <entrypoint kind="elb">elasticloadbalancing.us-west-1.amazonaws.com</entrypoint>
>      <entrypoint kind="ec2">ec2.us-west-1.amazonaws.com</entrypoint>
>    </provider>
> 
>    .. similar provider tags for the other regions ..
>  </driver>
> 
> David

------------------------------------------------------
Michal Fojtik, mfojtik@redhat.com
Deltacloud API: http://deltacloud.org


Mime
View raw message