Return-Path: Delivered-To: apmail-incubator-deltacloud-dev-archive@minotaur.apache.org Received: (qmail 58112 invoked from network); 8 Nov 2010 20:27:58 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Nov 2010 20:27:58 -0000 Received: (qmail 36041 invoked by uid 500); 8 Nov 2010 20:28:30 -0000 Delivered-To: apmail-incubator-deltacloud-dev-archive@incubator.apache.org Received: (qmail 36025 invoked by uid 500); 8 Nov 2010 20:28:30 -0000 Mailing-List: contact deltacloud-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: deltacloud-dev@incubator.apache.org Delivered-To: mailing list deltacloud-dev@incubator.apache.org Received: (qmail 35959 invoked by uid 99); 8 Nov 2010 20:28:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Nov 2010 20:28:30 +0000 X-ASF-Spam-Status: No, hits=-5.0 required=10.0 tests=RCVD_IN_DNSWL_HI,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of tcrawley@redhat.com designates 209.132.183.28 as permitted sender) Received: from [209.132.183.28] (HELO mx1.redhat.com) (209.132.183.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Nov 2010 20:28:22 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id oA8KS0A9030757 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 8 Nov 2010 15:28:00 -0500 Received: from katahdin.redhat.com (vpn-11-120.rdu.redhat.com [10.11.11.120]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id oA8KRxje012988 for ; Mon, 8 Nov 2010 15:27:59 -0500 From: Tobias Crawley To: deltacloud-dev@incubator.apache.org Subject: [PATCH 0/2] Rudimentary API capability reporting Date: Mon, 8 Nov 2010 15:27:56 -0500 Message-Id: <1289248078-25002-1-git-send-email-tcrawley@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 X-Virus-Checked: Checked by ClamAV on apache.org 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. 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 | 6 +++++ server/views/api/show.html.haml | 4 +- server/views/api/show.xml.haml | 2 +- 6 files changed, 55 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