File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change 1
1
# Express Example
2
2
3
- ## To Start
3
+ ## How To Start
4
4
5
5
``` bash
6
6
npm start
7
7
```
8
8
9
- ## To Post an Event
9
+ ## How To Post an Event
10
10
11
11
__ A Structured One__
12
12
@@ -30,6 +30,22 @@ curl -X POST \
30
30
-H' ce-time:2019-06-21T17:31:00Z' \
31
31
http://localhost:3000/
32
32
```
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
+
33
49
__ A Batch One__
34
50
35
51
TODO
You can’t perform that action at this time.
0 commit comments