Description
George Georgovassilis opened SPR-12131 and commented
This ticket proposes a new component that will work similarly to HttpInvokerProxyFactoryBean and allows binding a java interface to a remote REST/JSON service. Annotations on the interface and its methods would define the mapping of method invocations to concrete HTTP requests to the REST service.
The component would be a proxy factory which is given the mapping (possibly via a class name) and returns proxies which pass method invocations to the remote REST service.
For a possible implementation see https://github.com/ggeorgovassilis/spring-rest-invoker
Affects: 4.0.6, 4.3.3
Reference URL: https://groups.google.com/forum/#!topic/spring-framework-contrib/HTja1bE1TWY
Issue Links:
- Spring MVC REST: Provide interface definition model for generating HTTP client interface proxies wrapping RestTemplates [SPR-6261] #10929 Spring MVC REST: Provide interface definition model for generating HTTP client interface proxies wrapping RestTemplates ("duplicates")
- Enable REST controller method parameter annotations on an interface [SPR-11055] #15682 Enable REST controller method parameter annotations on an interface
- @RequestMapping without @Controller registered as handler [SPR-17622] #22154
@RequestMapping
without@Controller
registered as handler - Consider reusing @RequestMapping annotations as an interface for HTTP clients [SPR-12213] #16827 Consider reusing
@RequestMapping
annotations as an interface for HTTP clients - Read RestTemplate Accept header from entity annotation [SPR-12096] #16712 Read RestTemplate Accept header from entity annotation
4 votes, 9 watchers