couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Chapman" <>
Subject Creating views using PUT
Date Sat, 01 Nov 2008 08:57:11 GMT
Hi All,

I'm trying to create a view by using an http PUT instead of POST. I'm trying
to PUT to http://localhost:5984/somedatabase/_design/myview, but instead of
creating a document with an id of "_design/myview", it creates a document
with an id of "_design", with an attachment called "myview". I have also
tried url-encoding so that the url is
http://localhost:5984/somedatabase/_design%2fmyview, but I get exactly the
same result.

Is this a bug, or am I doing something wrong? Do I have to create views
using a POST?

I'm using the latest version of CouchDB from svn.



  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message