Couchbase-sync-gateway-REST
v0.1.8-2
Published
Couchbase Mobile Sync Gateway REST wrapper
Maintainers
Readme
Couchbase Mobile Sync Gateway REST wrapper Initial code from: https://github.com/luismanuel001/sync-gateway
Install
$ npm install Couchbase-sync-gateway-RESTUsage
var SyncGateway = new (require('sync-gateway'))('http://[USERNAME]:[PASSWORD]@[HOSTNAME]:[PORT]',[DATABASE]);
functions
get(docId)
SyncGateway.get(docId)
.then(function (response) {
})
.catch(function (err) {
})post({doc})
SyncGateway.post(doc)put({doc})
SyncGateway.put(doc)del({doc})
SyncGateway.del(doc)purge([docIds],[channels])
SyncGateway.purge(docIds,["*","info","!"])License
MIT © Luis Manuel
