summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan Lehnardt <jan@apache.org>2008-07-03 09:16:06 +0000
committerJan Lehnardt <jan@apache.org>2008-07-03 09:16:06 +0000
commit479ea7ee4d737f29d1797a8dbd564b5210628b65 (patch)
treec942dbc12404b00a9da72422f850b65e1c9c1859 /src
parent2c42263cfba0738c67df8d5f52e00fc5992a178c (diff)
Expose endkey_docid as a view query option through the HTTP API (including tests).
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@673631 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/couchdb/couch_httpd.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/couchdb/couch_httpd.erl b/src/couchdb/couch_httpd.erl
index 1d8c6648..6ae51411 100644
--- a/src/couchdb/couch_httpd.erl
+++ b/src/couchdb/couch_httpd.erl
@@ -653,6 +653,8 @@ parse_view_query(Req) ->
Args#view_query_args{start_key=JsonKey,end_key=JsonKey};
{"startkey_docid", DocId} ->
Args#view_query_args{start_docid=DocId};
+ {"endkey_docid", DocId} ->
+ Args#view_query_args{end_docid=DocId};
{"startkey", Value} ->
Args#view_query_args{start_key=cjson:decode(Value)};
{"endkey", Value} ->