Creating views during deployment
Fri, 02/15/2013 - 05:28
I am trying to create the bucket as part of my deployment and then investigate if i can create the view design documents. I have figured out that i can use couchbase-cli.exe to create the bucket
What I am trying to find out is , if there is a way to use client exe or may be the rest api to create the design document in a bucket. In CouchDb Apache i could post a document with design document contents and it would create the document with the views. Is this possible in Couchbase and can anyone point me to the right place
In our CI process we want delete and create the bucket and the views needed everytime to do some testing
Hello,
In Couchbase you can create your design document/views using the REST API:
http://www.couchbase.com/docs/couchbase-manual-2.0/couchbase-views-desig...
http://www.couchbase.com/docs/couchbase-manual-2.0/couchbase-views-desig...
The SDKs are exposing also this API, for example you can see how to do it from Java:
http://tugdualgrall.blogspot.fr/2012/12/couchbase-101-create-views-mapre...
Regards
Tug
@tgrall