Skip to content

Commit f1e7073

Browse files
committed
Added v1 vs v2 note
1 parent fab6af7 commit f1e7073

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Examples/APIGatewayV1/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
This is a simple example of an AWS Lambda function invoked through an Amazon API Gateway V1.
44

5+
> [!NOTE]
6+
> This example uses the API Gateway V1 `Api` endpoint type, whereas the [API Gateway V2](https://github.com/swift-server/swift-aws-lambda-runtime/tree/main/Examples/APIGateway) example uses the `HttpApi` endpoint type. For more information, see [Choose between REST AIs and HTTP APIs](https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-vs-rest.html).
7+
58
## Code
69

710
The Lambda function takes all HTTP headers it receives as input and returns them as output.

0 commit comments

Comments
 (0)