couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Candler (JIRA)" <>
Subject [jira] Commented: (COUCHDB-404) restfull and shorter urls for lists and shows
Date Tue, 07 Jul 2009 15:03:14 GMT


Brian Candler commented on COUCHDB-404:

> Views are available ... also on /db/_view/designame/viewname
> Lists are available ... also on /db/_view/designame/viewname?list=listname 

Won't that break attachments to design documents? Those are pretty fundamental to couchapps.

Also: my recollection is that the URLs were changed quite recently to the current format to
make them *more* RESTful - specifically, that lists and shows could link to each other using
relative URLs, without having to have hard-coded knowledge of the design document they were
sitting in.

> restfull and shorter urls for lists and shows
> ---------------------------------------------
>                 Key: COUCHDB-404
>                 URL:
>             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 :
> 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.

View raw message