# HG changeset patch # User Kim Alvefur # Date 1577958314 -3600 # Node ID 7d909976ca88eea6479b9c7deec9fced1932f858 # Parent 21ffca4d3aaeda6bf57f507b0c6fb288701459c5 mod_rest: Describe kind and type fields diff -r 21ffca4d3aae -r 7d909976ca88 mod_rest/README.markdown --- a/mod_rest/README.markdown Thu Jan 02 10:08:48 2020 +0100 +++ b/mod_rest/README.markdown Thu Jan 02 10:45:14 2020 +0100 @@ -150,6 +150,14 @@ #### Messages +`kind` +: `"message"` + +`type` +: Commonly `"chat"` for 1-to-1 messages and `"groupchat"` for group + chat messages. Others include `"normal"`, `"headline"` and + `"error"`. + `body` : Human-readable message text. @@ -164,6 +172,12 @@ #### Presence +`kind` +: `"presence"` + +`type` +: Empty for online or `"unavailable"` for offline. + `show` : [Online status](https://xmpp.org/rfcs/rfc6121.html#presence-syntax-children-show), @@ -179,6 +193,13 @@ Only one type of payload can be included in an `iq`. +`kind` +: `"iq"` + +`type` +: `"get"` or `"set"` for queries, `"response"` or `"error"` for + replies. + `ping` : Send a ping. Get a pong. Maybe.