Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Couchbase lite API Reference [closed]

I wonder where is reference API that would show how to use Couchbase Lite queries, crud functionality..

Going here (to official website doc page): http://www.couchbase.com/documentation

Doesn't help much. There just concepts, philosophy.

I'm interested in JS / PhoneGap side. But if go there: http://docs.couchbase.com/couchbase-lite/cbl-phonegap/

There are again: concepts, philosophy, some pictures. Nice.. there are even some samples I can get from git-hub. But where is reference API?


There are some: http://www.couchbase.com/docs/couchbase-api-reference-1.1/couchbase-protocol_get.html (Thanks Google) I'm not sure if is Lite though..

But where for JS ? Or I better ask: What do you (who use Couchbase lite with for JS/Mobile) use as documentation?

like image 870
ses Avatar asked Nov 02 '22 09:11

ses


2 Answers

The current Couchbase Lite API can be found here in the autodocs:

http://www.couchbase.com/autodocs/couchbase-lite-ios-1.0b1/annotated.html

When a new version of the API is released (which is imminent I believe), I will update this answer with a new link.

Also, even if you are using JS, it's still interacting with a native Couchbase Lite, so you are still using API just as a native iOS app is using the API.

Here are some other links that can help, the README's might be useful as well as the source code for the TodoLite: https://github.com/couchbaselabs/Couchbase-Lite-PhoneGap-Plugin https://github.com/couchbaselabs/TodoLite-PhoneGap

like image 137
scalabl3 Avatar answered Nov 11 '22 02:11

scalabl3


It looks like you need to use the REST API to access couchbase database from a phonegap/JS app.

Additionally, apps built with web technologies, such as JavaScript, can use the Couchbase Lite REST APIs to develop hybrid mobile apps.

Ref: http://developer.couchbase.com/mobile/develop/guides/couchbase-lite/index.html

And, the REST API for Couchbase Lite can be found at : http://developer.couchbase.com/mobile/develop/references/couchbase-lite/rest-api/index.html

like image 38
syed Avatar answered Nov 11 '22 03:11

syed