swift - How to call REST API from iOS code using Couchbase Lite -


i have tried call rest api mobile site. using following url http://ip_address:8091/bucket_name/document_name/

the response "not found"

i have refer below link: http://developer.couchbase.com/documentation/mobile/1.1.0/develop/references/couchbase-lite/rest-api/document/get---db---doc-/index.html#example

my question is, how can json response using rest api?

you mixing 2 different things here. 1. couchbase lite - embedded database similar idea sqlite - document - key/value database. 2. couchbase server - fledged enterprise nosql\kv\document database.

you have 2 approaches:

  1. when using couchbase lite mobile app may need sync gateway in order talk couchbase server. sync gateway deals online updates of data, while couchbase lite acts offline - online repository of data. preferred way - have greatest support app.

  2. when using couchbase server - can use sdk create calls - or use rest api available in rest service - such views. http://docs.couchbase.com/admin/admin/rest-intro.html

thanks, roi


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -