Mercurial > prosody-modules
comparison mod_rest/README.markdown @ 3953:2c6d5734ae04
mod_rest: Add JSON mapping of XEP-0128: Service Discovery Extensions
Example XEP-0157 payload:
{
"disco" : {
"extensions" : {
"http://jabber.org/network/serverinfo" : {
"abuse-addresses" : [
"mailto:abuse@shakespeare.lit",
"xmpp:abuse@shakespeare.lit"
],
"admin-addresses" : [
"mailto:admin@shakespeare.lit",
"xmpp:admin@shakespeare.lit"
],
"feedback-addresses" : [
"http://shakespeare.lit/feedback.php",
"mailto:feedback@shakespeare.lit",
"xmpp:feedback@shakespeare.lit"
],
"sales-addresses" : [
"xmpp:bard@shakespeare.lit"
],
"security-addresses" : [
"xmpp:security@shakespeare.lit"
],
"support-addresses" : [
"http://shakespeare.lit/support.php",
"xmpp:support@shakespeare.lit"
]
}
}
}
}
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 23 Mar 2020 19:03:04 +0100 |
parents | 2a5b42e4db07 |
children | 5790c3cf615b |
comparison
equal
deleted
inserted
replaced
3952:343dc9dd70dd | 3953:2c6d5734ae04 |
---|---|
372 | 372 |
373 `items` | 373 `items` |
374 : Boolean `true` in a `kind:iq` `type:get` for a service discovery | 374 : Boolean `true` in a `kind:iq` `type:get` for a service discovery |
375 items list query. The response contain an array of items like | 375 items list query. The response contain an array of items like |
376 `{"jid":"xmpp.address.here","name":"Description of item"}`. | 376 `{"jid":"xmpp.address.here","name":"Description of item"}`. |
377 | |
378 `extensions` | |
379 : Map of extended feature discovery (see [XEP-0128]) data with | |
380 `FORM_DATA` fields as the keys pointing at maps with the rest of the | |
381 data. | |
377 | 382 |
378 #### Ad-Hoc Commands | 383 #### Ad-Hoc Commands |
379 | 384 |
380 Used to execute arbitrary commands on supporting entities. | 385 Used to execute arbitrary commands on supporting entities. |
381 | 386 |