You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Benoit Chesneau (JIRA)" <ji...@apache.org> on 2010/06/15 18:03:23 UTC
[jira] Assigned: (COUCHDB-699) Allow for bind variables in complex
query keys for URL rewriter
[ https://issues.apache.org/jira/browse/COUCHDB-699?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benoit Chesneau reassigned COUCHDB-699:
---------------------------------------
Assignee: Benoit Chesneau
> 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.