ship event service

This commit is contained in:
Asim Aslam
2021-11-02 13:26:46 +00:00
parent cb18c7051b
commit 2dbc66ebd7
13 changed files with 780 additions and 0 deletions

25
event/examples.json Normal file
View File

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