According to the documentation the spring generator adds the @ResponseStatus annotation when useResponseEntity is disabled.
It would be useful to have a similar config option for the jaxrs-spec generator (according to the documentation this is not available currently).
2 proposals:
- Add the
@ResponseStatus annotation when returnResponse is disabled. This would alter the default behavior.
- Create a new config option, e.g.
responseStatus, that is disabled by default and can be set to true to enable it. To avoid conflicts the config option returnResponse would also have to be disabled before adding the annotation.
According to the documentation the
springgenerator adds the@ResponseStatusannotation whenuseResponseEntityis disabled.It would be useful to have a similar config option for the
jaxrs-specgenerator (according to the documentation this is not available currently).2 proposals:
@ResponseStatusannotation whenreturnResponseis disabled. This would alter the default behavior.responseStatus, that is disabled by default and can be set totrueto enable it. To avoid conflicts the config optionreturnResponsewould also have to be disabled before adding the annotation.