title: Feign client for multiple services
body: <p>I have a SpringBoot server that offers multiple services under multiple REST controllers. So I have something like:</p>
  
  <ul>
  <li>/serviceA/api1</li>
  <li>/serviceA/api2</li>
  <li>/serviceB/api1</li>
  <li>/serviceB/api2</li>
  </ul>
  
  <p>I want to use <strong>1</strong> Feign client to access them. But I don't really put all these calls in 1 'flat' interface. So I do not want to have:</p>
  
  <pre><code>public interface Client {
      @RequestLine(value="GET /serviceA/api1")
      public String getServiceAapi1();
  
      @RequestLine(value="GET /serviceA/api2")
      public String getServiceBapi2();
  
      @RequestLine(value="GET /serviceB/api1")
      public String getServiceAapi1();
  
      @RequestLine(value="GET /serviceB/api2")
      public String getServiceBapi2();
  }
  </code></pre>
  
  <p>I'm looking for a way so that at runtime I can use:</p>
  
  <pre><code>client.serviceA().api1();
  client.serviceA().api2();
  client.serviceB().api1();
  client.serviceB().api2();
  </code></pre>
  
  <p>Any way to do this?</p>
  
  <p>I hope this request makes sense ;-).</p>
  
  <p>Thanks.</p>
  
  <p>Henry</p>