title: Call another rest api from own rest api in spring boot application
body: <p>I am learning Spring Boot, I have managed to deploy an API on my computer which fetches data from Oracle and when I paste the link <a href="http://localhost:8080/myapi/ver1/table1data" rel="nofollow noreferrer">http://localhost:8080/myapi/ver1/table1data</a> in browser it returns me the data. Below is my controller code :</p>
  
  <pre><code>@CrossOrigin(origins = "http://localhost:8080")
  @RestController
  @RequestMapping("/myapi/ver1")
  public class Table1Controller {
  
  
      @Autowired
      private ITable1Repository table1Repository;
  
      @GetMapping("/table1data")
      public List&lt;Table1Entity&gt; getAllTable1Data() {
          return table1Repository.findAll();
      }
  </code></pre>
  
  <p>Now this scenario is working fine. I want to do another thing. There is an API <a href="https://services.odata.org/V3/Northwind/Northwind.svc/Customers" rel="nofollow noreferrer">https://services.odata.org/V3/Northwind/Northwind.svc/Customers</a> which returns some customers data. Does spring boot provide any way so that I can re-host/re-deploy this API from my own controller such that instead of hitting this the above <a href="https://services.odata.org/V3/Northwind/Northwind.svc/Customers" rel="nofollow noreferrer">link</a> in the browser, I should hit <a href="http://localhost:8080/myapi/ver1/table1data" rel="nofollow noreferrer">http://localhost:8080/myapi/ver1/table1data</a> and it will return me the same customers data. </p>