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
preguntada hace 7 meses367 visualizaciones
1 Respuesta
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
respondido hace 7 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas