rickfast/consul-client

why is there no AgentClient getService(serviceId) method using GET/agent/service/:service_id?

pravinrepo opened this issue · 2 comments

why is there no AgentClient getService(serviceId) method using GET/agent/service/:service_id? I see AgentClient getServices() method returning Map of all services, however, If I have serviceId available,
I would like to exercise Consul 1.3.0 HTTP API GET/agent/service/:service_id to return Service object based on service_id.

+1 for this missing API. This seems to be the only API supporting blocking queries and want to use if for my implementation. Any chance we can get this soon?

PRs welcome. Probably wouldn't take too long to implement - Unlikely I will get to this in the next few weeks