From dev-return-17154-apmail-couchdb-dev-archive=couchdb.apache.org@couchdb.apache.org Thu Jul 14 08:48:36 2011 Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5E9077AFC for ; Thu, 14 Jul 2011 08:48:36 +0000 (UTC) Received: (qmail 33569 invoked by uid 500); 14 Jul 2011 08:48:35 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 33147 invoked by uid 500); 14 Jul 2011 08:48:28 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 33121 invoked by uid 99); 14 Jul 2011 08:48:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Jul 2011 08:48:24 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Jul 2011 08:48:21 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id DE13F57A84 for ; Thu, 14 Jul 2011 08:47:59 +0000 (UTC) Date: Thu, 14 Jul 2011 08:47:59 +0000 (UTC) From: "Jan Lehnardt (JIRA)" To: dev@couchdb.apache.org Message-ID: <484184108.12751.1310633279906.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <399559220.12693.1310630522012.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Closed] (COUCHDB-1222) Naming convention: _id/_rev and id/rev 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 [ https://issues.apache.org/jira/browse/COUCHDB-1222?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jan Lehnardt closed COUCHDB-1222. --------------------------------- Resolution: Not A Problem The rule is consistent and worked for years now: CouchDB will always return "id"/"rev" and expect "id"/"rev" in URLs for requests *except* when it returns a full document JSON structure, in which case it is "_id" and "_rev" > Naming convention: _id/_rev and id/rev > -------------------------------------- > > Key: COUCHDB-1222 > URL: https://issues.apache.org/jira/browse/COUCHDB-1222 > Project: CouchDB > Issue Type: Improvement > Reporter: Johnny Weng Luu > Priority: Minor > > I'm using a MVC framework to communicate with CouchDB. > Sometimes CouchDB returns _id/_rev and other times id/rev. > Could either one of them be used instead, cause the model layer usually have pre set fields that can't be changed. > And this would also not confuse developers when they are parsing the result. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira