Mock a GET request for an image

0

I'd like to mock a get request for an image so that it could be used in an html img element e.g. <img src="https://xyz.execute-api.us-east-1.amazonaws.com/test/log/ffs.png">

In my Integration Response I've got a Mapping Template for Content-Type image/png

{
"isBase64Encoded":  true,
"body": 'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8DwHwAFBQIAX8jx0gAAAABJRU5ErkJggg=='
}

But the logs keep telling me: Execution failed due to configuration error: Unable to transform request

All the examples out there seem to be around using S3 or Lambda to return the images rather than hard coding them.

It maybe that I am attempting the impossible - but I can't see what I am doing wrong.

Alinea
질문됨 2년 전49회 조회
답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠