Skip to content

Commit

Permalink
docs: improve for CloudEvents (#475)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lindurion authored Dec 16, 2024
1 parent f607b54 commit bab6e2f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
This directory contains advanced docs around the Functions Framework.

- [Testing events and Pub/Sub](events.md)
- [Testing CloudEvents](cloudevents.md)
- [Testing Functions](testing-functions.md)
- [Debugging Functions](debugging.md)
- [Running and Deploying Docker Containers](docker.md)
Expand Down
6 changes: 3 additions & 3 deletions docs/cloudevents.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Add a `package.json` script to start the Functions Framework and pass the name o
```sh
{
"scripts": {
"start": "functions-framework --target=helloCloudEvents"
"start": "functions-framework --target=helloCloudEvents --signature-type=cloudevent"
}
}
```
Expand All @@ -51,5 +51,5 @@ it is no longer accessible via `HTTP GET` requests from the browser.
### Create and Send a CloudEvent to the Function

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

0 comments on commit bab6e2f

Please sign in to comment.