@@ -34,8 +34,10 @@ To expose your OpenAPI implementation as an AWS Lambda function:
34
34
35
35
``` swift
36
36
dependencies: [
37
- .package (url : " https://github.com/apple/swift-openapi-generator.git" , .upToNextMinor (from : " 1.0.0-alpha.1 " )),
37
+ .package (url : " https://github.com/apple/swift-openapi-generator.git" , .upToNextMinor (from : " 1.0.0" )),
38
38
.package (url : " https://github.com/apple/swift-openapi-runtime.git" , .upToNextMinor (from : " 1.0.0" )),
39
+
40
+ // add these three dependencies
39
41
.package (url : " https://github.com/swift-server/swift-aws-lambda-runtime.git" , branch : " 1.0.0-alpha.1" ),
40
42
.package (url : " https://github.com/swift-server/swift-aws-lambda-events.git" , branch : " main" ),
41
43
.package (url : " https://github.com/sebsto/swift-openapi-lambda" , branch : " main" )
@@ -48,19 +50,21 @@ To expose your OpenAPI implementation as an AWS Lambda function:
48
50
.executableTarget (
49
51
name : " YourOpenAPIService" ,
50
52
dependencies : [
53
+ .product (name : " OpenAPIRuntime" ,package : " swift-openapi-runtime" ),
54
+
55
+ // add these three dependencies
51
56
.product (name : " AWSLambdaRuntime" , package : " swift-aws-lambda-runtime" ),
52
57
.product (name : " AWSLambdaEvents" , package : " swift-aws-lambda-events" ),
53
- .product (name : " OpenAPIRuntime" ,package : " swift-openapi-runtime" ),
54
58
.product (name : " OpenAPILambda" ,package : " swift-openapi-lambda" ),
55
59
],
56
60
```
57
61
58
62
2 . Add a protocol and a constructor to your existing OpenAPI service implementation
59
63
60
- ! [Animated GIF to show the changes](assets/ swift- openapi- lambda.gif )
61
-
62
64
There are only four changes to make to your existing implementation:
63
65
66
+ ! [Animated GIF to show the changes](assets/ swift- openapi- lambda.gif )
67
+
64
68
```swift
65
69
import Foundation
66
70
import OpenAPIRuntime
0 commit comments