OpenAPI PDF Response

  • Goal: Getting a file from a GET Endpoint

  • Steps: The swagger file is correct, as even swagger ui shows it correctly and receives the pdf file. I return it as binary and have the content type and content disposition correctly set.

  • Details: The data object is always null

Am I just missing a flag or boolean for recognizing the response? I want to display the PDF using your pdf widget!

Here is a screenshot from my schema - working in swagger ui.
Bildschirmfoto 2024-09-21 um 18.24.53

And here's a screenshot of the response shown in query sidebar
Bildschirmfoto 2024-09-21 um 18.25.46

1 Like

Hey @jannis6023! Welcome to the community. :wave:

Thanks for making such a detailed post, as well. Providing this much context is almost always super helpful for us. That said, nothing jumps out to me as obviously incorrect.

The first thing I'd do in order to narrow down the scope of the issue is verify that your API returns the expected data when using a tool like Postman. Assuming it returns the expected data, then we can dig into potential causes.