consul-client icon indicating copy to clipboard operation
consul-client copied to clipboard

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

Open pravinrepo opened this issue 6 years ago • 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.

pravinrepo avatar Apr 02 '19 17:04 pravinrepo

+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?

hemantkhurana avatar Apr 03 '19 19:04 hemantkhurana

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

rickfast avatar Apr 09 '19 20:04 rickfast