Amazon API Gateway now supports three new features that make it easy to integrate APIs with AWS Lambda and HTTP endpoints. Previously, you needed to define each method and its integration behavior in API Gateway in order to integrate with backend endpoints. Now, you can route all traffic to a specific backend endpoint without having to apply any request or response mappings and transformations.

First, we now support catch-all path variables. You can define routes such as /store/{proxy+} where the + symbol tells API Gateway to intercept all requests to the /store/* path. Second, we now support a new method type called ANY. You can use the catch-all ANY method to define the same integration endpoint for all requests (GET, POST, etc). Third, you can now use a new proxy integration type for Lambda functions and HTTP endpoints. Lambda function proxy integrations apply a default mapping template to send the entire request to your functions, and it automatically maps Lambda output to HTTP responses. HTTP proxy integrations simply pass the entire request and response directly through to your HTTP endpoint.

When used together, these new features allow you to easily configure API Gateway and port existing applications written with frameworks such as Express to AWS Lambda. Read our documentation to learn more.