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.

Vikas
已提问 7 个月前367 查看次数
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 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则