The greedy path, the ANY HTTP method, and proxy integration

We can use the greedy path param, {proxy+}, under a resource, in order to catch all of the requests to the resource's sub-resources. For example, /hello/{proxy+} catches all of the resources under hello/. The ANY HTTP method matches for any HTTP method. Enabling proxy integration will make the API pass the raw request to the Lambda, as is.

We used all three of these together, but that is not a requirement. You can use any one of these, or a combination of them. For example, we can define a regular path parameter and a regular HTTP method, but enable proxy integration. This will forward raw requests to the Lambda only when the path and HTTP method matches.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.189.178.53