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?

1 Antwort
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
EXPERTE
beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen