If @ApiOperation
's response property is not used to mark a return type explicitly, Swagger is supposed to use the method's signature's return type as the operation type (unless the return type is javax.ws.rs.core.Response where void will be used instead).
When testing the swagger-jaxrs dependency with a return type other than Response (String, Pet), the return type remained 'void'.