cloudant / java-cloudant

A Java client for Cloudant
Apache License 2.0
79 stars 68 forks source link

Functionality _bulk_get #429

Closed al-tr closed 4 years ago

al-tr commented 6 years ago

There's a _bulk_get functionality in cloudant.

Is it planned to implement it in the API? Or maybe it's already there in some unexpected way?

emlaver commented 6 years ago

@al-tr The current workaround is to use client.executeRequest method to perform calls that are not currently available in the Java API. For example: HttpConnection resp = client.executeRequest(Http.POST(new URL(database.getDBUri() + "/_bulk_get"))); We have plans to add this in the next API versions.

al-tr commented 6 years ago

just a funny side note: _bulk_get is actually a POST request :D

emlaver commented 6 years ago

I've updated the example above to use POST.

ricellis commented 4 years ago

We're not adding enhancements here, but our new cloudant-java-sdk(beta) includes APIs for postBulkGet.