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개 답변
0
수락된 답변

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
전문가
Uri
답변함 2년 전
profile picture
전문가
검토됨 한 달 전

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

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

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

관련 콘텐츠