Skip to content
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

force json based outputformats when none specified #87

Merged
merged 2 commits into from
Jan 19, 2024

Conversation

nls-jajuko
Copy link
Collaborator

Force json based outputformats when none specified in request f parameter or accept header

There is some randomness in Jersey request matching when request has not specified any output format - sometimes html and other times json responses.

Added force to GlobalFQueryFilter with a supporting class MediaTypes with some constants for output formats.

Other approach would be to include qs q-values :
https://jakarta.ee/specifications/restful-ws/3.1/jakarta-restful-ws-spec-3.1.html#selecting_from_multiple_media_types

@nls-jajuko nls-jajuko added this to the 1.3.0 milestone Jan 3, 2024
@nls-jajuko nls-jajuko added the bug Something isn't working label Jan 3, 2024
@jampukka
Copy link
Collaborator

Looks good to me

@jampukka jampukka merged commit 71bdfd1 into nlsfi:main Jan 19, 2024
2 checks passed
@nls-jajuko nls-jajuko deleted the accept_f_param branch March 25, 2024 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants