Add getEndpoints method to ServiceClient