A proxy passes an agreed envelope from the backend. A non-proxy integration can translate it. A mock has no backend to contact.
What should API Gateway send to the backend?
The essentials in 30 seconds
before you dive into the detailsPicture this
A messenger or a translator?
Pass the envelope
Proxy -> backend response contract
The backend supplies the required response envelope.
Transform the envelope
Non-proxy mapping -> response transformation
The integration maps the backend reply.
Choose the API type and integration from the required contract, transformation and backend.
For REST Lambda proxy, check statusCode and the string body. For direct SQS integration, check SendMessage mapping and the integration role.
Exam trap
A successful Lambda invocation does not prove its REST proxy response has a valid format.
Keywords
- REST API
- HTTP API
- statusCode
- body
- MOCK
- SendMessage
One sentence to remember
Choose the API type and integration from the required contract, transformation and backend.
1 media item5 rule steps5 scenarios6 flashcards