0.1.8-2 • Published 8 years ago

Couchbase-sync-gateway-REST v0.1.8-2

Weekly downloads
13
License
MIT
Repository
github
Last release
8 years ago

Dependency Status

Couchbase Mobile Sync Gateway REST wrapper Initial code from: https://github.com/luismanuel001/sync-gateway

Install

$ npm install Couchbase-sync-gateway-REST

Usage

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

0.1.8-2

8 years ago

0.1.8-1

8 years ago

0.1.8

8 years ago

0.1.7

8 years ago