Add getEndpoints method to ServiceClient

Will also need to add `HttpURLConnection.HTTP_NOT_FOUND` as a parameter at the end, so that `RESTClient` will not throw an IOException from `RESTClient.execute`