Skip to content

Commit b12c6d7

Browse files
committed
fix type, ex with extension
Signed-off-by: Fabio José <[email protected]>
1 parent b39a321 commit b12c6d7

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

examples/express-ex/README.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Express Example
22

3-
## To Start
3+
## How To Start
44

55
```bash
66
npm start
77
```
88

9-
## To Post an Event
9+
## How To Post an Event
1010

1111
__A Structured One__
1212

@@ -30,6 +30,22 @@ curl -X POST \
3030
-H'ce-time:2019-06-21T17:31:00Z' \
3131
http://localhost:3000/
3232
```
33+
34+
__A Binary One with Extension__
35+
36+
```bash
37+
curl -X POST \
38+
-d'@../payload/data-0.json' \
39+
-H'Content-Type:application/json' \
40+
-H'ce-specversion:0.2' \
41+
-H'ce-type:com.github.pull.create' \
42+
-H'ce-source:https://github.com/cloudevents/spec/pull/123' \
43+
-H'ce-id:45c83279-c8a1-4db6-a703-b3768db93887' \
44+
-H'ce-time:2019-06-21T17:31:00Z' \
45+
-H'ce-my-extension:extension value' \
46+
http://localhost:3000/
47+
```
48+
3349
__A Batch One__
3450

3551
TODO

0 commit comments

Comments
 (0)