Return-Path: Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: (qmail 28687 invoked from network); 7 Jun 2010 07:06:23 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 7 Jun 2010 07:06:23 -0000 Received: (qmail 97616 invoked by uid 500); 7 Jun 2010 07:06:23 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 97495 invoked by uid 500); 7 Jun 2010 07:06:23 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 97335 invoked by uid 99); 7 Jun 2010 07:06:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Jun 2010 07:06:22 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Jun 2010 07:06:20 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o5775wVE009236 for ; Mon, 7 Jun 2010 07:05:58 GMT Message-ID: <11118022.211721275894358772.JavaMail.jira@thor> Date: Mon, 7 Jun 2010 03:05:58 -0400 (EDT) From: "Andrew Purtell (JIRA)" To: issues@hbase.apache.org Subject: [jira] Created: (HBASE-2678) version the REST interface MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org version the REST interface -------------------------- Key: HBASE-2678 URL: https://issues.apache.org/jira/browse/HBASE-2678 Project: HBase Issue Type: Sub-task Reporter: Andrew Purtell Assignee: Andrew Purtell As mentioned in HBASE-2563, we should deprecate all uses of _cell_ in the API and replace with new APIs that use _value_ instead. So we need a way to version the REST interface, to provide an updated API while maintaining access to the deprecated one until the next major revision. However, something like this I consider wrong: {{/path/to/v1/resource}} and also: {{/v2/path/to/resource}} because the resource is the same regardless of the representation change. REST makes a distinction between the representation and the resource using media types. Currently Stargate supports the following encodings: * {{text/plain}} (in some cases) * binary: {{application/octet-stream}} (freeform, no schema change needed) * XML: {{text/xml}} * JSON: {{application/json}} * protobufs: {{application/x-protobuf}} We can add Avro encoding support in HBASE-2557 with the new representation as {{application/x-avro-binary}} immediately. For XML, JSON, and protobuf encoding, we can support new representations using the following new media types in the current version: * XML: {{application/vnd.hbase+xml}} * JSON: {{application/vnd.hbase+json}} * protobufs: {{application/vnd.hbase+protobuf}} * and for sake of consistency: {{application/vnd.hbase+avro}} and then in the next major version recognize both MIME types but return the same (newer) representation. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.