How to call REST API from iOS/Android code

I have tried to call REST API from Mobile site. Using the following url
http://IP_Address:8091/Bucket_Name/Document_Name/

the response is “Not found”

I have refer the 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 I get json response using REST api?

If you’re using the REST API with Sync Gateway, it won’t be on port 8091. That’s the port number for Couchbase Server which is behind Sync Gateway. If you hit the right host/port, you should get the document.

Thanks for your suggestion @ingenthr, I hit the right host/port, and I am getting the document :slight_smile: