Open asjohnston-asf opened 6 months ago
See https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-payload-encodings.html for more discussion of serving binary content from an API Gateway REST API.
serverless_wsgi
already handles the text-vs-binary encoding of the response body for us, so updating binaryMediaTypes
in the API Gateway configuration should be sufficient.
Adding:
BinaryMediaTypes:
- '*/*'
Under RestApi:Properties:
in apps/api/api-cf.yml.j2
fixes the issue for non-EDC deployments. We haven't determined why this solution doesn't work for our EDC deployments.
The OpenAPI logo included as a favicon for the swagger UI doesn't render correctly for https://hyp3-api.asf.alaska.edu/ui/
Requests to the underlying resources return content, but the content is incorrectly encoded: