You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support to Create a Proxy From an Annotated HTTP Service Interface #28386
This has been raised before, see #16747 and related (duplicate) issues, but was done under Spring Cloud instead, first as an OpenFeign integration and more recently as a Retrofit integration.
The goal for this issue is first class support in the Spring Framework to create a client proxy from an annotated, HTTP service interface, since it is more generally applicable. Spring Cloud can then provide additional features around that. The same is also planned for RSocket with #24456.
Methods on such an HTTP service interface will support many of the same method arguments as for server side handling with @RequestMapping methods, but narrowing the choice down to those arguments that apply to both client and server side use. On the client side, argument values are used to populate the request, while on the server side, argument values are extracted from the request.
Methods of the HTTP service interface will require a new annotation, similar in purpose to @RequestMapping, but to declare an HTTP exchange in a way that is neutral to client or server perspective.
Reacted by Spencer Gibb, Yanming Zhou, Marten Deinum, Anbu Sampath, Tadaya Tsuyukubo and Sergiy Morenets
Activity
Add @HTTPRequest and HttpServiceProxyFactory
Add HttpMethod and PathVariable argument resolvers
Polishing contribution
Polishing
Update after review
Refactor HttpRequestSpec to HttpRequestValues
Add remaining HttpExchange annotations
Add HttpServiceProxyFactory builder
Update HttpMethodArgumentResolver
Add resolvers for URI, cookies, and request params
Refactor resolver tests
Add RequestBody resolver and minor improvements
Avoid package cycle with web.service.invoker through plain javadoc re…
Add documentation for interface proxy client