@Override
public ResponseEntity<InputStreamResource> exportfooAsPdf(@PathVariable("id") UUID id) {
I’m getting this error for InputStreamResource
‘exportfooAsPdf(UUID)’ in ‘de..web.controller.fooSearchController’ clashes with ‘exportfooAsPdf(UUID)’ in ‘de..web.controller.FooApiDelegate’; attempting to use incompatible return type
post:
summary: Export foo information as PDF
operationId: exportfooAsPdf
description: Exports the information of the specified foo member as a PDF.
parameters:
- name: id
in: path
required: true
description: foo member identifier
schema:
type: string
format: uuid
responses:
'200':
description: Successful PDF export
content:
application/pdf:
schema:
type: string
format: binary
I replaced InputStreamResource with Resource and it still didn’t work