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:
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.
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
Post a Comment