Pergunta

I am looking for a way to access a list I have defined as part of a couchdb design document whilst using CouchRest.

I have tried changing the call from being something like;

CouchRest.database("http://mycouchdb.com/db").view("interactions/myview")

To

CouchRest.database("http://mycouchdb.com/db").view("interactions/_list/mylist/myview")

But I get a parse error, and there doesn't appear to be a function like .view or any parameters I can set to tell it which list to use.

Any help would be greatly appreciated.

Foi útil?

Solução

_list/_show functions should produce 'raw' http responses, maybe you want a more generic http library for those?

Those features exist largely so you can navigate to them directly in the browser, or to support other client implementations that don't explicitly understand CouchDB (eg, jsonrpc/soap).


Im not a rubyist, so I can't reccomend any particular tool for this, but it looks like couchrest depends on rest-client, so using that wouldn't be an "additional dependency"

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top