Skip to content

Commit bab6e2f

Browse files
authored
docs: improve for CloudEvents (#475)
1 parent f607b54 commit bab6e2f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

docs/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
This directory contains advanced docs around the Functions Framework.
44

55
- [Testing events and Pub/Sub](events.md)
6+
- [Testing CloudEvents](cloudevents.md)
67
- [Testing Functions](testing-functions.md)
78
- [Debugging Functions](debugging.md)
89
- [Running and Deploying Docker Containers](docker.md)

docs/cloudevents.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Add a `package.json` script to start the Functions Framework and pass the name o
3434
```sh
3535
{
3636
"scripts": {
37-
"start": "functions-framework --target=helloCloudEvents"
37+
"start": "functions-framework --target=helloCloudEvents --signature-type=cloudevent"
3838
}
3939
}
4040
```
@@ -51,5 +51,5 @@ it is no longer accessible via `HTTP GET` requests from the browser.
5151
### Create and Send a CloudEvent to the Function
5252

5353
```
54-
cloudevents send http://localhost:8080 --specver--id abc-123 --source cloudevents.conformance.tool --type foo.bar
55-
```
54+
cloudevents send http://localhost:8080 --id abc-123 --source cloudevents.conformance.tool --type foo.bar
55+
```

0 commit comments

Comments
 (0)