We're updating the issue view to help you get more done. 

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."

See https://javaee.github.io/tutorial/jaxrs002.html#GIPZH

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

Workaround (if any):

Status

Assignee

Sven Stauber

Reporter

Sven Stauber

Severity

Incorrect Documentation

Tags (folksonomy)

None

Components

Fix versions

Affects versions

4.2

Priority

Minor