add stream

This commit is contained in:
Asim Aslam
2021-11-02 19:08:23 +00:00
parent bc050eb7e1
commit b29f83dbb2
13 changed files with 769 additions and 0 deletions

25
stream/examples.json Normal file
View File

@@ -0,0 +1,25 @@
{
"publish": [{
"title": "Publish a message",
"description": "Publish a message to a topic on the stream",
"run_check": true,
"request": {
"topic": "events",
"message": {"id": "1", "type": "signup", "user": "john"}
},
"response": {}
}],
"subscribe": [{
"title": "Subscribe to a topic",
"description": "Subscribe to messages on a given topic from the stream",
"run_check": false,
"request": {
"topic": "events"
},
"response": {
"topic": "events",
"message": {"id": "1", "type": "signup", "user": "john"}
}
}]
}