I’m trying to return a binary response from an endpoint (e.g. jpeg, png, webp). I’ve set isBase64Encoded: true
as well as adding the following binary media types in api gateway:
*/*
\*/\*
image/*
However, even with all these added, an Accept
header of */*
still yields an encoded response. Any ideas how I can force API GW to return my data correctly?