-
Notifications
You must be signed in to change notification settings - Fork 474
Remove Jaxb annotations #695
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
e2833c1
to
96ad57e
Compare
By removing all Jaxb annotations, subimtted a request for a hypermedia enabled endpoint inside a browser (which defaults to accept:application/xhtml+xml,*/*), Spring HATEOAS will yield HAL.
96ad57e
to
b2ad3f6
Compare
By removing all Jaxb annotations, subimtted a request for a hypermedia enabled endpoint inside a browser (which defaults to accept:application/xhtml+xml,*/*), Spring HATEOAS will yield HAL.
By removing all Jaxb annotations, requesting data from a hypermedia-enabled endpoint inside a browser (which defaults to accept:application/xhtml+xml,*/*), Spring HATEOAS will yield HAL.
b2ad3f6
to
b4d28e5
Compare
@schauder This PR pulls out XML support. Given our HAL format and others never did support XML, and having XML stuff actually confused Spring MVC routes, it makes sense to pull this stuff. |
Removed Jaxb annotations from packaga-info.java. Simplified Test code by removing unused code a debug output. Formatting.
/** | ||
* Verify the default {@literal Accept} header used by a browser (which favors XML/HTML) still yields HAL-JSON. | ||
*/ | ||
@Test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Include a comment referencing an issue in the test or don't you do that for this project?
Applies to all @Test
annotations.
Also applies to many other classes not touched in this commit.
Maybe cleaning this up an moving to the style of Spring Data is in place?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed, Spring HATEOAS observes the Spring Data standards, so using the notation is a good point.
By removing all Jaxb annotations, requesting data from a hypermedia-enabled endpoint inside a browser (which defaults to accept:application/xhtml+xml,*/*), Spring HATEOAS will yield HAL.
* Removed Jaxb annotations from packaga-info.java. * Simplified Test code by removing unused code a debug output. * Formatting. * Updated copyright headers.
Resolved via dca65e1. |
[spring-hateoas source](spring-projects/spring-hateoas#119 (comment)) PR [#695](spring-projects/spring-hateoas#695) Signed-off-by: Emerson Almeida Matos <[email protected]>
[spring-hateoas source](spring-projects/spring-hateoas#119 (comment)) PR [#695](spring-projects/spring-hateoas#695) Signed-off-by: Emerson Almeida Matos <[email protected]>
No description provided.