API gateway dynamic xml json response

0

Creating a AWS API gateway rest api using vpc link integration in which I will pass the request as json always, and based on the return content-type either xml or json, need to return the API response accordingly. Please suggest what integration response and method response configuration is required.

1개 답변
0

Hi,

Please suggest what integration response and method response configuration is required.

It is highly dependent on your backend implementation and it is difficult to get a correct answer without the knowledge of your architecture and requirements. If your backend is HTTP, there is a HTTP proxy integration and HTTP non-proxy integration (a.k.a. custom integration). If your backend is Lambda, there are Lambda proxy integration, and Lambda non-proxy integration. If your backend is one of AWS services (e.g., SQS, Step Functions), then use AWS integration. You can find some insights from those tutorial.

Again, which integration response and method response should be configured is based on which integration type you choose, which is highly dependent on your architecture and requirements.

profile picture
HS
답변함 7달 전

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

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

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