Content-type is the type of content you are sending, if it's a GET then you're not sending any content and shouldn't be sending that header as it contravenes the rfc. I think you mean the Accept header which the client sends to tell the api what format it wants to receive.
in an openapi file we never explicitly document either of those because openapi is controlled through the produces and consumes attributes. See the openapi spec for more info.
------------------------------
Chris Dudley
------------------------------
Original Message:
Sent: Tue March 12, 2024 09:32 AM
From: Abhishek Jagtap
Subject: How to download PDF file through response in IBM API Connect
Hi,
I want to download pdf through response in IBM API Connect. I am consuming third party URL in API Connect. While invoking API I'm getting "Failed to load pdf" as an error. I'm passing "application/pdf" as Content-Type in request headers. Also, I'm able to see pdf file as attachment in response headers.
Please provide a solution for this issue.
------------------------------
Abhishek Jagtap
------------------------------