User/chan/messaging activity refactored

This commit is contained in:
Denis Arh
2019-04-26 13:34:35 +02:00
parent f8e7a2133d
commit b0239761f7
20 changed files with 334 additions and 68 deletions
+27
View File
@@ -1,3 +1,30 @@
# User activity
| Method | Endpoint | Purpose |
| ------ | -------- | ------- |
| `POST` | `/activity/` | Sends user's activity to all subscribers; globally or per channel/message. |
## Sends user's activity to all subscribers; globally or per channel/message.
#### Method
| URI | Protocol | Method | Authentication |
| --- | -------- | ------ | -------------- |
| `/activity/` | HTTP/S | POST | |
#### Request parameters
| Parameter | Type | Method | Description | Default | Required? |
| --------- | ---- | ------ | ----------- | ------- | --------- |
| channelID | uint64 | POST | Channel ID, if set, activity will be send only to subscribed users | N/A | NO |
| messageID | uint64 | POST | Message ID, if set, channelID must be set as well | N/A | NO |
| kind | string | POST | Arbitrary string | N/A | YES |
---
# Attachments
| Method | Endpoint | Purpose |