User/chan/messaging activity refactored
This commit is contained in:
@@ -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.",
|
||||
|
||||
39
api/messaging/spec/activity.json
Normal file
39
api/messaging/spec/activity.json
Normal 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"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user