Extracted interface for RestClient