Mercurial > prosody-modules
comparison mod_rest/README.markdown @ 5122:25f39ceccbca
mod_rest/README: Fix XML well-formedness in example (thanks drsnuggles)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 31 Dec 2022 15:32:25 +0100 |
parents | a85efae90e21 |
children | 09dd378748b8 |
comparison
equal
deleted
inserted
replaced
5121:dd2c45d05f73 | 5122:25f39ceccbca |
---|---|
52 curl https://prosody.example:5281/rest \ | 52 curl https://prosody.example:5281/rest \ |
53 --user username \ | 53 --user username \ |
54 -H 'Content-Type: application/xmpp+xml' \ | 54 -H 'Content-Type: application/xmpp+xml' \ |
55 --data-binary '<message type="chat" to="user@example.org"> | 55 --data-binary '<message type="chat" to="user@example.org"> |
56 <body>Hello!</body> | 56 <body>Hello!</body> |
57 </body>' | 57 </message>' |
58 ``` | 58 ``` |
59 | 59 |
60 or a JSON payload: | 60 or a JSON payload: |
61 | 61 |
62 ``` {.sh} | 62 ``` {.sh} |