3
0

User/chan/messaging activity refactored

This commit is contained in:
Denis Arh
2019-04-26 13:21:31 +02:00
parent f8e7a2133d
commit b0239761f7
20 changed files with 334 additions and 68 deletions

View File

@@ -88,6 +88,45 @@
}
]
},
{
"name": "activity",
"path": "/activity",
"entrypoint": "activity",
"title": "User activity",
"parameters": {},
"authentication": [],
"apis": [
{
"name": "send",
"method": "POST",
"title": "Sends user's activity to all subscribers; globally or per channel/message.",
"path": "/",
"parameters": {
"post": [
{
"name": "channelID",
"type": "uint64",
"required": false,
"title": "Channel ID, if set, activity will be send only to subscribed users"
},
{
"name": "messageID",
"type": "uint64",
"required": false,
"title": "Message ID, if set, channelID must be set as well"
},
{
"name": "kind",
"type": "string",
"required": true,
"title": "Arbitrary string"
}
]
}
}
]
},
{
"title": "Channels",
"description": "A channel is a representation of a sequence of messages. It has meta data like channel subject. Channels may be public, private or group.",

View File

@@ -0,0 +1,39 @@
{
"Title": "User activity",
"Interface": "Activity",
"Struct": null,
"Parameters": {},
"Protocol": "",
"Authentication": [],
"Path": "/activity",
"APIs": [
{
"Name": "send",
"Method": "POST",
"Title": "Sends user's activity to all subscribers; globally or per channel/message.",
"Path": "/",
"Parameters": {
"post": [
{
"name": "channelID",
"required": false,
"title": "Channel ID, if set, activity will be send only to subscribed users",
"type": "uint64"
},
{
"name": "messageID",
"required": false,
"title": "Message ID, if set, channelID must be set as well",
"type": "uint64"
},
{
"name": "kind",
"required": true,
"title": "Arbitrary string",
"type": "string"
}
]
}
}
]
}