title: How to register more than one service per eureka client on eureka server?
body: <p>I am starting learning Eureka APIs. I created a Eureka Server using spring boot and corresponding clients. 
  For starting I created a Eureka Client and registered with Server. The client was exposing a get service with no path </p>
  
  <pre><code>@GetMapping("/")
  </code></pre>
  
  <p>This works fine. As as soon as I get server Instance using DiscoveryClient as below, i can hit the service</p>
  
  <pre><code>List&lt;ServiceInstance&gt; list = client.getInstances(service);
      if (list != null &amp;&amp; list.size() &gt; 0) {
          URI uri = list.get(0).getUri();
          String url=uri.toString();
          if (url != null) {
              return (new RestTemplate()).getForObject(url, String.class);
          }
      }
  </code></pre>
  
  <p>But I was not sure how to configure a service that has a path e.g. </p>
  
  <pre><code>@GetMapping("/greetings")
  </code></pre>
  
  <p>For now I can hardcode it as</p>
  
  <pre><code>List&lt;ServiceInstance&gt; list = client.getInstances(service);
      if (list != null &amp;&amp; list.size() &gt; 0) {
          URI uri = list.get(0).getUri();
          String url=uri.toString()+"/greetings";
          if (url != null) {
              return (new RestTemplate()).getForObject(url, String.class);
          }
      }
  </code></pre>
  
  <p>Or register this as service name in bootstrap.yml at client as </p>
  
  <pre><code>spring:
    application:
      name: eurekaClient2/greetings
  </code></pre>
  
  <p>But is there some other way to do this? 
  What if i want to expose a get service and a post service? 
  How do i configure in that case?</p>