Software /
code /
prosody-modules
Comparison
mod_rest/README.markdown @ 3800:cfa00eea896f
mod_rest: Add some text about the payload format
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 30 Dec 2019 07:21:46 +0100 |
parent | 3797:ed5d7586a61e |
child | 3801:d59fb4dcf100 |
comparison
equal
deleted
inserted
replaced
3799:a1f1f703d604 | 3800:cfa00eea896f |
---|---|
95 <message type="chat"> | 95 <message type="chat"> |
96 <body>Yes, this is bot</body> | 96 <body>Yes, this is bot</body> |
97 </message> | 97 </message> |
98 ``` | 98 ``` |
99 | 99 |
100 ## Payload format | |
101 | |
102 ``` {.xml} | |
103 <message type="" id="" to="" from="" xml:lang=""> | |
104 ... | |
105 </message> | |
106 ``` | |
107 | |
108 An XML declaration (`<?xml?>`) **MUST NOT** be included. | |
109 | |
110 The payload MUST contain one (1) `message`, `presence` or `iq` stanza. | |
111 | |
100 # Compatibility | 112 # Compatibility |
101 | 113 |
102 Requires Prosody trunk / 0.12 | 114 Requires Prosody trunk / 0.12 |