I updated calls to query Consul to call /health/ endpoints rather than /catalog/ so that the ?passing query string is respected.
The shape of the JSON that comes back from health requests differs hence the introduction of an intermediary type, ConsulHealthResponse, to make deserialization easier while maintaining the same return object from ConsulClient.GetServices and ConsulClient.GetService requests.
I updated calls to query Consul to call
/health/
endpoints rather than/catalog/
so that the?passing
query string is respected.The shape of the JSON that comes back from health requests differs hence the introduction of an intermediary type,
ConsulHealthResponse
, to make deserialization easier while maintaining the same return object fromConsulClient.GetServices
andConsulClient.GetService
requests.