Good day!

I have two modules in one application. One server, which is made on Spring Boot, the other client, made on Vaadin.

Question: how to send a rest request to the server application (for example, by pressing a button) using the controller rest interfaces (rest api, in which the rest endpoint is defined)?

I tried to do it via RestTemplate, but the problem is that a URI is needed to reach the rest endpointa (for example, https: // localhost: 8080 / books , and I only need / books).

I will be glad to any answer!

  • are these two different applications? deployed on different servers? - Mikhail Vaysman
  • I did not correctly explain, these are 2 different modules in one application, one of which is made on Spring Boot is registered in Eureka, another module which is made on Vaadin is not registered in Eureka. Deployed on one server. - Roman
  • @MikhailVaysman, any ideas on this? - Roman
  • I have no experience with Vaadin. I would do this in plain javascript. - Mikhail Vaysman

0