mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-11 19:04:35 +00:00
update stream to be about social ephemeral messaging (#255)
This commit is contained in:
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
}]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user