Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 24915 invoked from network); 8 Jul 2009 04:00:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Jul 2009 04:00:41 -0000 Received: (qmail 28340 invoked by uid 500); 8 Jul 2009 04:00:50 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 28214 invoked by uid 500); 8 Jul 2009 04:00:49 -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 28204 invoked by uid 99); 8 Jul 2009 04:00:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Jul 2009 04:00:49 +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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Jul 2009 04:00:36 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 2B6F8234C004 for ; Tue, 7 Jul 2009 21:00:15 -0700 (PDT) Message-ID: <478882569.1247025615166.JavaMail.jira@brutus> Date: Tue, 7 Jul 2009 21:00:15 -0700 (PDT) From: "Benoit Chesneau (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Commented: (COUCHDB-404) restfull and shorter urls for lists and shows In-Reply-To: <786513381.1246956615029.JavaMail.jira@brutus> 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-404?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12728489#action_12728489 ] Benoit Chesneau commented on COUCHDB-404: ----------------------------------------- You could still use relatives urls with this format but against db: they aren't contained in the _design though but I don't think it's a problem since the patch don't break anything. But using format parameter make CouchDB a real resource/documnt repository where you could choose format of docs & views. And I think it's very usefull for some usages. > restfull and shorter urls for lists and shows > --------------------------------------------- > > Key: COUCHDB-404 > URL: https://issues.apache.org/jira/browse/COUCHDB-404 > Project: CouchDB > Issue Type: Improvement > Components: HTTP Interface > Affects Versions: 0.10 > Environment: * > Reporter: Benoit Chesneau > > We discussing yesterday with @jchris and @jasondavies about shortening > shows and lists urls and we arrived on this format : > /db/docid?show=dname/showname > /db/_view/dname/vname?list=listname > This change is very usefull since it allows shorter urls and I think > it's more RESTFul. I had time this morning to write this and I created > a branch on my github repository : > http://github.com/benoitc/couchdb/tree/formuri > To do this I refactored a little couch_httpd_show to reuse code to > display lists and shows and added URL parameters parsing/validation. > All changes made in this branch don't break current CouchDB behavior > so : > * Views are available on > /db/_design/designame/_view/viewname (current behavior) but also on > /db/_view/designame/viewname > * Lists are available on > /db/_design/designame/_list/listname/viewname (current behavior) > but also on > /db/_view/designame/viewname?list=listname > * Shows are available on > /db/_design/designame/_show/showname/docid > but also on > /db/docid?show=designame/showname -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.