incubator-deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lut...@redhat.com
Subject Make drivers a toplevel collection
Date Mon, 28 Mar 2011 23:41:19 GMT
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

Mime
View raw message