Hi,

Couch has an HTTP API, so you have to pull the right URL in Java (i.e. open
a java.net.Connection to the right URL). You can try the URL in the browser
before to check whether all the right data is there. So, you can point your
browser to http://{server}:{port}/{db}/_all_docs?include_docs=true and
check if you have all info in it. Then you can use sth like (new
java.net.URL("http://{server}:{port}/{db}/_all_docs?include_docs=true";).openConnection())
to grab the URL connection and work from there. Using sth like
http://www.json.org/javadoc/org/json/JSONObject.html is certainly useful
when moving forward

Good luck
     Sebastian

On Sat, Jan 17, 2015 at 2:11 PM, Ayhan Kesenci <[email protected]>
wrote:

> Where i put this code in ?, i dont know how to work with curl, if its curl
>
> 2015-01-17 14:08 GMT+01:00 Aurélien Bénel <[email protected]>:
>
> > > i need the whole couchdbfile
> >
> > Have you tried with `/{db}/_all_docs?include_docs=true` ?
> >
> > Reference:
> > http://docs.couchdb.org/en/latest/api/database/bulk-api.html#db-all-docs
> >
> >
> > Regards,
> >
> > Aurélien
>

Reply via email to