DESCRIPTION

capi implementation + simple create_view + json-set test

added create_view,get_view and delete_view and run_view to
RestConnection class
usage example :
capi = RestConnection(server)
function = "{\"_id\": \"_design/test\",\"views\": {\"stuff\": {\"map\": \"function (doc) { emit([doc.id], 99); }\"}}}"
capi.create_view("default","myview",function)
capi.get_view("default","myview")
capi.delete_view("default","myview")

added a simple view tests
i changed the test to only use the default bucket for now
and it won't delete the bucket in tearDown method anymore
this is to avoid known issues

Change-Id: I35326c5f3fc2fa8ce10004c47d0da187cae5afb5


COMMENTS

author: Zackery Barr
date: 2011-07-25 17:35:24.061000000

Uploaded patch set 10.

-------------------------------------
