You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
init(transport: LambdaOpenAPITransport) throws { // <-- add this constructor (don't remove the call to `registerHandlers(on:)`)
72
+
init(transport: LambdaOpenAPITransport) throws { // <-- 4. add this constructor (don't remove the call to `registerHandlers(on:)`)
69
73
tryself.registerHandlers(on: transport)
70
74
}
71
75
@@ -406,7 +410,7 @@ LOCAL_LAMBDA_SERVER_ENABLED=true swift run
406
410
curl -v -X POST --header "Content-Type: application/json" --data @events/GetQuote.json http://127.0.0.1:7000/invoke
407
411
```
408
412
409
-
## Implement your own `OpenAPILambda` to support other event types
413
+
## Implement your own `OpenAPILambda` to support other AWS Lambda event types
410
414
411
415
When you expose your AWS Lambda function to other event types, you have to specialize the `OpenAPILambda` protocol and implement the two methods that transform your Lambda function input data to an `OpenAPIRequest` and the other way around, transform an `OpenAPIResponse` to your Lambda function output type.
412
416
@@ -531,4 +535,4 @@ To get started, check out [this step-by-step tutorial](https://swiftpackageindex
531
535
532
536
### Serverless Application Model (SAM)
533
537
534
-
Read "[What is SAM](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/what-is-sam.html)" to understand and get started with SAM.
538
+
Read "[What is SAM](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/what-is-sam.html)" to understand and get started with SAM.
0 commit comments