Signed-off-by: Vitor Mattos <vitor@php.rio>
This commit is contained in:
Vitor Mattos 2022-03-10 10:27:16 -03:00
Родитель 23270be26a
Коммит 73f59d3546
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B7AB4B76A7CA7318
1 изменённых файлов: 20 добавлений и 0 удалений

Просмотреть файл

@ -21,6 +21,16 @@ Base endpoint is: `/ocs/v2.php/apps/spreed/api/v1`
+ `404 Not Found` When the conversation or message to react could not be found for the participant
+ `409 Conflict` User already did this reaction to this message
- Data:
Array with data of reactions:
field | type | Description
---|---|---
`actorType` | string | `guests` or `users`
`actorId` | string | Actor id of the reacting participant
`actorDisplayName` | string | Display name of the reaction author
`timestamp` | int | Timestamp in seconds and UTC time zone
## Delete a reaction
* Required capability: `reactions`
@ -38,6 +48,16 @@ Base endpoint is: `/ocs/v2.php/apps/spreed/api/v1`
+ `400 Bad Request` In case of no reaction support, message out of reactions context or any other error
+ `404 Not Found` When the conversation or message to react or reaction could not be found for the participant
- Data:
Array with data of reactions:
field | type | Description
---|---|---
`actorType` | string | `guests` or `users`
`actorId` | string | Actor id of the reacting participant
`actorDisplayName` | string | Display name of the reaction author
`timestamp` | int | Timestamp in seconds and UTC time zone
## Retrieve reactions of a message by type
* Required capability: `reactions`