Skip to content

Commit 9b4aaac

Browse files
committed
Improve event example
1 parent adc27b6 commit 9b4aaac

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

README.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,30 +24,31 @@ To start cloudevents-feed-notifier, specify the configuration file using the `-c
2424

2525
## Event
2626

27-
Events are sent as CloudEvents in the following headers and body.
27+
Event are sent as CloudEvents using HTTP Transport Binding (Binary Content Mode).
2828

2929
### Request headers
3030

3131
| Header | Value |
3232
| --- | --- |
3333
| CE-SpecVersion | 0.2 |
34-
| CE-Time | (Published time) |
35-
| CE-ID | (Auto generated UUID) |
34+
| CE-Time | 2019-01-16T19:41:51+09:00 (Published time) |
35+
| CE-ID | cffa4fa7-095b-485c-aaa8-a28e98a5f897 (Auto generated UUID) |
3636
| CE-Type | feed.publish |
37-
| CE-Source | (Entry URL) |
37+
| CE-Source | https://github.com/kubernetes/kubernetes/releases/tag/v1.13.2 (Entry URL) |
3838
| Content-Type | application/json |
3939

4040
### Request body
4141

4242
```
4343
{
44-
"feed": {
45-
"title": "XML feed title",
46-
"url": "https://xml.feed",
44+
"feed":{
45+
"title": "Release notes from kubernetes",
46+
"url": "https://github.com/kubernetes/kubernetes/releases.atom"
4747
},
48-
"entry": {
49-
"title": "Entry title",
50-
"url": "https://xml.feed/entry",
48+
"entry":{
49+
"title": "v1.13.2",
50+
"url": "https://github.com/kubernetes/kubernetes/releases/tag/v1.13.2",
51+
"published_at": "2019-01-11T02:18:07Z"
5152
}
5253
}
5354
```

0 commit comments

Comments
 (0)