I’m starting with Couchbase. I’m trying to make a put/get request from Android device to server with sync gateway.
I’ve tried like I make in CouchDB:
HttpClient httpClient = new DefaultHttpClient();
HttpPut put = new HttpPut(“http://IP:4984/BUCKET”);
JSONObject oNode = new JSONObject();
StringEntity entity = new StringEntity(oNode.toString());
HttpResponse resp = httpClient.execute(put);
But it doesn’t work.
I’ve been looking for, but I’m not be able to find anything about how to do it. How can I do it?
Next, I’ll test design documents with update functions, like CouchDB. Does it work in Couchbase server?
Thank you very much.