tutorials icon indicating copy to clipboard operation
tutorials copied to clipboard

RestTemplate using Operations interfaces

Open rafis opened this issue 4 years ago • 0 comments

Hi!

https://www.baeldung.com/spring-interface-driven-controllers https://github.com/eugenp/tutorials/tree/master/spring-web-modules/spring-5-mvc

You show only half. You show only how to use Operations interfaces in Server-side, so I can create "-api" Maven/Gradle-module (as library) and use it in "-service" Maven/Gradle-module (as microservice). But how to use it in Client-side (in RestTemplate)? How can I call these routes and methods defined Operations interfaces from RestTemplate/WebClient without manually specifying route and method because they are already specified in interface annotations?

rafis avatar Apr 14 '21 17:04 rafis