-
Notifications
You must be signed in to change notification settings - Fork 38.5k
Allow use of form-backing object for client requests #32142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@aykborstelmann, thanks for the suggestion. Note that there is currently no such mechanism if using While I understand the benefit, the main challenge is that in the general case an object can be of arbitrary depth and structure, and there will clearly need to be some limits around what is possible. It also increases the possibility of using objects that were not originally built for this, and end up sending information that wasn't meant to be sent. Even in your example record, the last property is a |
HttpServiceProxyFactory
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed. |
@rstoyanchev yes I'm aware of the difficulties involved. |
I've updated the title as this applies more broadly to client scenarios including RestClient, WebClient, and testing too, see #29728. |
Affects: 6.+
I really appreciate the
HttpServiceProxyFactory
, it is a great feature to easily create a client matching a interface.However, for large APIs, we usually like to encapsulate multiple parameters in convenience classes, which spring web supports with databinding.
However, when creating a client for
EndpointApi
and using it, noHttpServiceArgumentResolver
exists per default to handle such parameters.I would appreciate this feature out of the box, while I am are that,
HttpServiceProxyFactory
provides a way to register customargumentResolvers
.The text was updated successfully, but these errors were encountered: