couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benoit Chesneau (JIRA)" <j...@apache.org>
Subject [jira] Closed: (COUCHDB-699) Allow for bind variables in complex query keys for URL rewriter
Date Tue, 15 Jun 2010 16:03:23 GMT

     [ https://issues.apache.org/jira/browse/COUCHDB-699?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Benoit Chesneau closed COUCHDB-699.
-----------------------------------

    Resolution: Fixed

available in latest head

> Allow for bind variables in complex query keys for URL rewriter
> ---------------------------------------------------------------
>
>                 Key: COUCHDB-699
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-699
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: HTTP Interface
>    Affects Versions: 0.11
>         Environment: CouchDB 0.11.x branch
>            Reporter: Zachary Zolton
>            Assignee: Benoit Chesneau
>            Priority: Minor
>
> Enhance URL rewriter module to substitute bound variables in complex query parameters.
> Given the URL rewrite rule:
>  {
>    "from": "/events/:year",
>    "to": "_list/event-list/events-by-date",
>    "method": "GET",
>    "query": {
>      "startkey": [":year"],
>      "endkey": [":year", {}]
>    }
>  }
> A request like:
> /db/_design/ddoc/_rewrite/events/1980
> Should rewrite to:
> /db/_design/ddoc/_list/event-list/events-by-date?startkey=[1980]&endkey=[1980,{}]
> (URI encoding of the query parameter values notwithstanding.)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message