Is it possible to send json data in body of GET method defined in API Gateway REST API ?

0

Is it possible to send json data in body of GET method defined in API Gateway REST API ? The REST API defined in APIGW will act as a pass through for an existing REST API. When tested the data passed in the body is not received by the underlying API. The customer is suggested to send data in query string but there are certain code changes in the underlying API which will take some time.

1 Antwort
0
Akzeptierte Antwort

It depends on the integration. For instance, when using Lambda integration, the payload is sent to the backend. When using HTTP or VPC Link, the payload will be sent to the backend, only if you choose the integration method to be POST (maybe also PUT).

So, if you create a resource with a GET method and you configure it to integrate with an HTTP/VPC backend using a POST method, the payload will be sent to the backend.

profile pictureAWS
EXPERTE
Uri
beantwortet vor 2 Jahren
profile picture
EXPERTE
überprüft vor einem Monat

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