Software /
code /
prosody-modules
Comparison
mod_pubsub_post/README.markdown @ 3153:e0de1fdbc80a
mod_pubsub_post/README: Describe what happens to different data types
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 27 Jun 2018 17:35:20 +0200 |
parent | 3152:882f7d5c3ce8 |
child | 3256:0992c0398783 |
comparison
equal
deleted
inserted
replaced
3152:882f7d5c3ce8 | 3153:e0de1fdbc80a |
---|---|
7 ``` {.bash} | 7 ``` {.bash} |
8 curl http://localhost:5280/pubsub_post/princely_musings \ | 8 curl http://localhost:5280/pubsub_post/princely_musings \ |
9 -H "Content-Type: application/json" \ | 9 -H "Content-Type: application/json" \ |
10 --data-binary '{"musing":"To be, or not to be: that is the question"}' | 10 --data-binary '{"musing":"To be, or not to be: that is the question"}' |
11 ``` | 11 ``` |
12 | |
13 - JSON data is wrapped in a [XEP-0335] container. | |
14 - An Atom feed may have many `<entry>` and each one is published as | |
15 its own PubSub item. | |
16 - Other XML is simply published to a randomly named item as-is. | |
12 | 17 |
13 # Configuration | 18 # Configuration |
14 | 19 |
15 ## Authentication | 20 ## Authentication |
16 | 21 |