Add getEndpoints method to ServiceClient

Also need javadoc for `throws NotFoundException`.