Open
Description
The current implementation of the conneg service applies to all resources and methods indifferently.
But we would like to support the case where some resources and methods are requested using the strict content negotiation mode, and some other using the flexible one.
given:
- add an application with a converter such as the one based on Jackson
- switch the conneg service to strict mode
- add a ressource and a @get annotated method that returns a bean
- add a ressource and a @get annotated method that returns a Representation
when
- requesting the first resource with a media type (header
accept
) not supported by the converter (e.g.:application/test
)
then - get a 406 status response
when
- requesting the second resource with a media type (header
accept
) not supported by the converter (e.g.:application/test
)
then - get a the representation with its right media type (and not a 406 status response as it currently does)