qbit/consul-client/src/main/java/io/advantageous/consul/endpoints/AgentEndpoint.java
public List<Member> getMembers() {

        final URI uri = createURI("/members");
        final HTTP.Response response = HTTP.getResponse(uri.toString());
        if (response.code() == 200) {
            return fromJsonArray(response.body(), Member.class);
        }
        die("Unable to read members", uri, response.code(), response.body());
        return Collections.emptyList();

    }
public List<Member> getMembers() {

        final URI uri = createURI("/members");
        final HTTP.Response response = HTTP.getResponse(uri.toString());
        if (response.code() == 200) {
            return fromJsonArray(response.body(), Member.class);
        }
        die("Unable to read members", uri, response.code(), response.body());
        return Collections.emptyList();

    }
Retrieves all members that the Agent can see in the gossip pool.
<p>
GET /v1/agent/members

@return List of Members.