AWS API Gateways can return mock responses
The API Gateway Pattern is a way to provide a single entry point for clients to your microservices backend.
You might use AWS API Gateways so that your mobile application can reach your backend services.
You might not know that you can set up mock integrations that return mostly static responses. There’s also some basic functionality to conditionally send different responses:
{
#if( $input.params('scope') == "internal" )
"statusCode": 200
#else
"statusCode": 500
#end
}
Mock integrations let your mobile team develop and hit the real API Gateway while your backend team builds the features.
Master GitHub Actions with a Senior Infrastructure Engineer
As a senior staff infrastructure engineer, I share exclusive, behind-the-scenes insights that you won't find anywhere else. Get the strategies and techniques I've used to save companies $500k in CI costs and transform teams with GitOps best practices—delivered straight to your inbox.
Not sure yet? Check out the archive.
Unsubscribe at any time.