qbit/consul-client/src/main/java/io/advantageous/consul/endpoints/KeyValueStoreEndpoint.java
public List<String> getKeys(String key) {


        final URI uri = createURI("/" + key);
        final HttpRequestBuilder httpRequestBuilder = RequestUtils
                .getHttpRequestBuilder(null, null, RequestOptions.BLANK, "");


        httpRequestBuilder.addParam("keys", "true");


        final HTTP.Response httpResponse = HTTP.getResponse(uri.toString() + "?" + httpRequestBuilder.paramString());


        if (httpResponse.code() == 200) {
            return fromJsonArray(httpResponse.body(), String.class);
        } else {
            die("Unable to get nested keys", uri, key, httpResponse.code(), httpResponse.body());
            return Collections.emptyList();
        }
    }
public List<String> getKeys(String key) {


        final URI uri = createURI("/" + key);
        final HttpRequestBuilder httpRequestBuilder = RequestUtils
                .getHttpRequestBuilder(null, null, RequestOptions.BLANK, "");


        httpRequestBuilder.addParam("keys", "true");


        final HTTP.Response httpResponse = HTTP.getResponse(uri.toString() + "?" + httpRequestBuilder.paramString());


        if (httpResponse.code() == 200) {
            return fromJsonArray(httpResponse.body(), String.class);
        } else {
            die("Unable to get nested keys", uri, key, httpResponse.code(), httpResponse.body());
            return Collections.emptyList();
        }
    }
Retrieves a list of matching keys for the given key.
<p>
GET /v1/keyValueStore/{key}?keys

@param key The key to retrieve.
@return A list of zero to many keys.