REST docs don't respect @Produces annotation on class level

Steps to reproduce

Steps to reproduce:
1. Open REST docs for an endpoint that uses the @Produces annotation on class level

Actual Results:
The section "Response formats" will not display the formats as defined by the @Produces annotation on class level.

Java defines the following behaviour:
"The @Produces annotation is used to specify the MIME media types or representations a resource can produce and send back to the client. If @Produces is applied at the class level, all the methods in a resource can produce the specified MIME types by default. If applied at the method level, the annotation overrides any @Produces annotations applied at the class level."


Expected Results:
The REST docs should correctly display the Response formats.

Workaround (if any):

Fixed and reviewed
Your pinned fields
Click on the next to a field label to start pinning.


Sven Stauber


Sven Stauber


Incorrect Documentation