You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
JAX-RS includes a MediaType class which has constants for most of the common HTTP media types.
With the addition of the @PATCH method annotation it may be desired to start using either of the two common JSON PATCH media types for implementations.
In my mind there are two options.
A single class for all additional media types. Something like AdditionalMediaTypes with constants like APPLICATION_MERGE_PATCH_JSON and APPLICATION_JSON_PATCH_JSON.
Classes that provide additional context around what media types they have constants for. Something like PatchMediaTypes with constants named similarly to above.
Another question we should think about is how will we decide which media types to include in beadledom?
The text was updated successfully, but these errors were encountered:
JAX-RS includes a
MediaType
class which has constants for most of the common HTTP media types.With the addition of the
@PATCH
method annotation it may be desired to start using either of the two common JSON PATCH media types for implementations.In my mind there are two options.
AdditionalMediaTypes
with constants likeAPPLICATION_MERGE_PATCH_JSON
andAPPLICATION_JSON_PATCH_JSON
.PatchMediaTypes
with constants named similarly to above.Another question we should think about is how will we decide which media types to include in beadledom?
The text was updated successfully, but these errors were encountered: