CloudantClient(CouchDbProperties props, GsonBuilder gsonBuilder) {
this.couchDbClient = new CouchDbClient(props);
couchDbClient.setGsonBuilder(gsonBuilder);
}
public ApiKey generateApiKey() {
<BUG>URI uri = buildUri(getBaseUri()).path("_api/v2/api_keys").build();
</BUG>
InputStream response = couchDbClient.post(uri, null);
return getResponse(response, ApiKey.class, getGson());
}

CloudantClient(CouchDbProperties props, GsonBuilder gsonBuilder) {
this.couchDbClient = new CouchDbClient(props);
couchDbClient.setGsonBuilder(gsonBuilder);
}
public ApiKey generateApiKey() {
URI uri = new URIBase(getBaseUri()).path("_api").path("v2").path("api_keys").build();
InputStream response = couchDbClient.post(uri, null);
return getResponse(response, ApiKey.class, getGson());
}
