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?
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
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With