Example for structured with extension

Signed-off-by: Fabio José <fabiojose@gmail.com>
This commit is contained in:
Fabio José 2019-06-25 11:08:09 -03:00
parent 1497934bed
commit c7341baf96
1 changed files with 13 additions and 0 deletions

View File

@ -10,6 +10,8 @@ npm start
__A Structured One__
> Payload [example](../payload/v02/structured-event-0.json)
```bash
curl -X POST \
-d'@../payload/v02/structured-event-0.json' \
@ -17,6 +19,17 @@ curl -X POST \
http://localhost:3000/
```
__A Structured One with Extension__
> Payload [example](../payload/v02/structured-event-1.json)
```bash
curl -X POST \
-d'@../payload/v02/structured-event-1.json' \
-H'Content-Type:application/cloudevents+json' \
http://localhost:3000/
```
__A Binary One__
```bash