JSON Data and Binary Data in API Gateway

0

Is it possible to configure API Gateway to accept both JSON data and Binary data from a POST request?

已提問 2 年前檢視次數 1022 次
1 個回答
0

Refer to this document on how to do this - https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-payload-encodings.html

If you want to configure from the console, you can look at the Settings under your API and if you scroll down all the way, it has a section "Binary Media Types" where you can specify which content types must be treated as binary.

profile pictureAWS
專家
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南