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
* Update Lambda runtime to 2.0.0 and Breeze packages to 1.0.0
* Update documentation
---------
Co-authored-by: Andrea Scuderi <andrea.scuderi@ymail.com>
Copy file name to clipboardExpand all lines: Docs/GenerateWebhook.md
+20-4Lines changed: 20 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,15 +65,21 @@ Open the generated code, and implement your custom business logic by changing th
65
65
If the parameter `github-user` is present in the URL query string, the value is extracted and used to get the content from GitHub, the content is returned to the response payload.
66
66
67
67
```swift
68
-
class GetWebHook: BreezeLambdaWebHookHandler {
68
+
import Foundation
69
+
import BreezeLambdaWebHook
70
+
import AsyncHTTPClient
71
+
import AWSLambdaEvents
72
+
import AWSLambdaRuntime
73
+
74
+
final class GetWebHook: BreezeLambdaWebHookHandler {
guard let params = event.queryStringParameters else {
@@ -101,6 +107,16 @@ class GetWebHook: BreezeLambdaWebHookHandler {
101
107
If the parameter `github-user` is present in the JSON payload, the value is extracted and used to get the content from GitHub, the content is returned to the response payload.
0 commit comments