You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by Apache Wiki <wi...@apache.org> on 2009/03/10 06:12:17 UTC

[Couchdb Wiki] Update of "Formatting with Show and List" by ChrisAnderson

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification.

The following page has been changed by ChrisAnderson:
http://wiki.apache.org/couchdb/Formatting_with_Show_and_List

The comment on the change is:
design resources path change

------------------------------------------------------------------------------
  Assuming these functions were in a design document named "`examples`" in a database named "`db`", they could be queried like this:
  
  {{{
- GET /db/_show/examples/posts/somedocid
+ GET /db/_design/examples/_show/posts/somedocid
  
- GET /db/_show/examples/people/otherdocid
+ GET /db/_design/examples/_show/people/otherdocid
  
- GET /db/_show/examples/people/otherdocid?format=xml&details=true
+ GET /db/_design/examples/_show/people/otherdocid?format=xml&details=true
  }}}
  
  
@@ -87, +87 @@

  These lists are run by querying URLs like:
  
  {{{
- GET /db/_list/examples/index-posts/posts-by-date?descending=true&limit=10
+ GET /db/_design/examples/_list/index-posts/posts-by-date?descending=true&limit=10
  
- GET /db/_list/examples/index-posts/posts-by-tag?key="howto"
+ GET /db/_design/examples/_list/index-posts/posts-by-tag?key="howto"
  
- GET /db/_list/examples/browse-people/people-by-name?startkey=["a"]&limit=10
+ GET /db/_design/examples/_list/browse-people/people-by-name?startkey=["a"]&limit=10
  }}}
  
  [As above, we assume the database is named "db" and the design doc "examples".]