-
Notifications
You must be signed in to change notification settings - Fork 472
Added ControllerActionBuilder with actionFor method. #71
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
Conversation
See the javadoc of ControllerActionBuilder and HtmlResourceMessageConverter for usage and SamplePersonController and HtmlResourceMessageConverterTest-context.xml for an example. Currently using spring-test-mvc with WebContextLoader to stay compatible with Spring 3.1.x
removed code duplication in AnnotatedParametersParameterAccessor.getBoundMethodParameterValues
This looks quite decent. Is there a chance you try to raise the version of the Once we have that polished I can start polishing the code to get it merged. :) |
I tried that already, it didn't work due to class not found errors. That's |
Guess what? Just raise the dependency to Spring 3.2.3 then. If one's interested in state-of-the-art hypermedia, you're probably able/willing to upgrade to an up-to-date Spring as well. |
OK, I'll do that :-) I'll also change the name createActionFor to |
Go ahead, I'll probably apply some name changes here and there after some internal feedback here as well. I just wanted to make sure we don't start of with too much extra code in the first place. :) |
Reverted fix for VndErrorsMarshallingTests, will apply the official fix
Conflicts: src/main/java/org/springframework/hateoas/mvc/ControllerLinkBuilderFactory.java src/test/java/org/springframework/hateoas/mvc/ControllerLinkBuilderUnitTest.java
Removed an incorrect comment stating that PUT will be part of HTML5, it won't be: http://www.w3.org/html/wg/wiki/User:Eoconnor/ISSUE-195
…er returning an array of HttpMessageConverters, not a List
This is how an action could be represented in HAL: https://gist.github.com/dschulten/5696110, single-item form. The idea is, if I am a browser, I will get a form whereas if I am asking for application/hal+json I will get a hal resource. |
Any plans on when this is going to be merged? |
ping :) |
Hi Oliver, are you still interested in this? Is some work needed on my side to get this in? |
@olivergierke could you please review this. The "method" support would be very much appreciated. Thanks. ;) |
To be honest, the more I look into it, the less I am convinced that merging this is a good idea:
In general, my biggest concern is that this is far from done and basically lacking a description of the general approach, its limitations. We currently don't have neither a form nor HTML strategy with Spring HATEOAS and I think that we need to come up with a more exhaustive concept to it before going forward with it. Open for suggestions. |
Since I am the author of that pull request: After the pull request never @olivergierke if you are interested I would be happy to create another pull The goal of hydra-java is to support hypermedia types with "forms" support, [1] Am 09.03.2015 um 01:44 schrieb Alexander Heusingfeld:
|
That's great news, Dietrich. As JAX is not too far away anymore. Shall we get together there and find some time to discuss things? Wouldn't mind @aheusingfeld joining us as he seems to be buys in that area, too. |
Great! That's almost exactly what I started with yesterday! Will look at your implementation instead. \o/
Yes. I'll be there Apr 21 - 23. Looking forward to see you there. |
My talk is on the 23rd at 17:00-18:00, so best after that or right after Dietrich On March 10, 2015 8:08:51 AM Oliver Gierke [email protected] wrote:
|
4ebc1be
to
266ad50
Compare
Superceded by #612 and resolved via 70448a8. Final solution isn't precisely the same thing, but we plan to iterate over it in the near future and expand to support other mediatypes. Feel free to check the HAL-FORMS section of code and their corresponding unit tests. Also, see monitor Spring HATEOAS Examples repo as we plan to add an Affordances example very soon. |
@dschulten Please sign the Contributor License Agreement! Click here to manually synchronize the status of this Pull Request. See the FAQ for frequently asked questions. |
1 similar comment
@dschulten Please sign the Contributor License Agreement! Click here to manually synchronize the status of this Pull Request. See the FAQ for frequently asked questions. |
Improved support for requests which require that the client sends data to the server. The goal is not to rely on out-of-band information for this.
The new ActionDescriptor allows to create responses which tell the client how to send data to a resource, e.g. how to build POST and PUT bodies or which GET parameters to use in a query.
See the javadoc of ControllerActionBuilder and HtmlResourceMessageConverter for usage and SamplePersonController and HtmlResourceMessageConverterTest-context.xml for an example.
Currently using spring-test-mvc with WebContextLoader to stay compatible with Spring 3.1.x