Skip to content

Commit cbddb82

Browse files
authored
Update doc regarding watch events
1 parent e0f4c85 commit cbddb82

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

+13
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,19 @@ curl --request POST \
179179
{"message":"This is a response"}
180180
```
181181

182+
You can also use the following format for your event, in order to avoid using the Amazon API Gateway format:
183+
```
184+
{
185+
"event": {
186+
"key1": "value1",
187+
"key2": "value2",
188+
"key3": "value3"
189+
}
190+
}
191+
```
192+
193+
In this case, the event will be passed directly to the handler.
194+
182195
## About: Definitions
183196

184197
### Event data

0 commit comments

Comments
 (0)