Skip to content

Conversation

gregturn
Copy link
Contributor

@gregturn gregturn commented Feb 1, 2018

No description provided.

gregturn added a commit that referenced this pull request Feb 1, 2018
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.
@gregturn gregturn requested a review from odrotbohm March 9, 2018 15:41
gregturn added a commit that referenced this pull request Dec 5, 2018
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.
@gregturn
Copy link
Contributor Author

gregturn commented Dec 5, 2018

@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
Copy link
Contributor

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?

Copy link
Contributor Author

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.

gregturn added a commit that referenced this pull request Dec 6, 2018
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.
gregturn pushed a commit that referenced this pull request Dec 6, 2018
* Removed Jaxb annotations from packaga-info.java.
* Simplified Test code by removing unused code a debug output.
* Formatting.
* Updated copyright headers.
@gregturn
Copy link
Contributor Author

gregturn commented Dec 6, 2018

Resolved via dca65e1.

emerson-matos added a commit to emerson-matos/financasapi that referenced this pull request Jul 20, 2020
emerson-matos added a commit to emerson-matos/financasapi that referenced this pull request Jul 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants