This patch adds /api/capabilities, which currently lists the operations
available in the collection. The next step would be for the client to parse
and use this info.

This is the second version of this patch, and nests <capabilitues>
under the <api> in the xml output based on mfojtik's feedback. 

Tobias Crawley (2):
  Move actual capability test out to its own method.
  Added simple capability reporting to the API.

 server/lib/deltacloud/backend_capability.rb |    6 ++++-
 server/server.rb                            |   29 +++++++++++++++++++++++++-
 server/views/api/capabilities.html.haml     |   14 +++++++++++++
 server/views/api/capabilities.xml.haml      |    7 ++++++
 server/views/api/show.html.haml             |    4 +-
 server/views/api/show.xml.haml              |    2 +-
 6 files changed, 56 insertions(+), 6 deletions(-)
 create mode 100644 server/views/api/capabilities.html.haml
 create mode 100644 server/views/api/capabilities.xml.haml

-- 
1.7.2.3

Reply via email to