update stream to be about social ephemeral messaging (#255)

This commit is contained in:
Asim Aslam
2021-11-03 14:41:49 +00:00
committed by GitHub
parent 06e7c0f242
commit 8827af19f5
9 changed files with 964 additions and 274 deletions

View File

@@ -1,25 +1,46 @@
{
"publish": [{
"title": "Publish a message",
"description": "Publish a message to a topic on the stream",
"sendMessage": [{
"title": "Send a message",
"description": "Send a message to a channel",
"run_check": true,
"request": {
"topic": "events",
"message": {"id": "1", "type": "signup", "user": "john"}
"channel": "general",
"text": "Hey checkout this tweet https://twitter.com/m3oservices/status/1455291054295498752"
},
"response": {}
}],
"subscribe": [{
"title": "Subscribe to a topic",
"description": "Subscribe to messages on a given topic from the stream",
"listMessages": [{
"title": "List messages",
"description": "List messages for a channel",
"run_check": false,
"request": {
"topic": "events"
"channel": "general"
},
"response": {
"topic": "events",
"message": {"id": "1", "type": "signup", "user": "john"}
"messages": [
{
"id": "e6099dca-22af-440e-bdbf-e14525af9824",
"text": "Hey checkout this tweet https://twitter.com/m3oservices/status/1455291054295498752",
"timestamp": "2021-11-03T14:34:40.333401738Z",
"channel": "general",
"metadata": {}
}
]
}
}],
"listChannels": [{
"title": "List channels",
"description": "List all the channels",
"run_check": true,
"request": {},
"response": {
"channels": [
{
"name": "general",
"last_active": "2021-11-03T14:35:07.594972213Z"
}
]
}
}]
}