rickfast / consul-client

Java Client for Consul HTTP API
Other
570 stars 241 forks source link

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

Open pravinrepo opened 5 years ago

pravinrepo commented 5 years ago

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.

hemantkhurana commented 5 years ago

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

rickfast commented 5 years ago

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