Mock Integration
Understand the concept of mock integrations in API Gateway and its common use cases.
We'll cover the following
What's mock integration?
Mock integration is a special type of integration where the API doesn’t invoke any service within or outside of AWS. Instead, the API Gateway returns a response by itself. It does so by returning a hardcoded response or echoing a part of the incoming request.
The term, mock integration, can be very misleading. It’s not mockery at all. Mock integrations may seem useless, but as we work with API Gateway, we come across several use cases where mock integration is the only rescue.
Let’s see an example in practice.
Get hands-on with 1400+ tech skills courses.