# HG changeset patch # User Kim Alvefur # Date 1635263535 -7200 # Node ID 611bc06c41603d3df8fc58e58645379dfa72b178 # Parent dcafddc31b1c8a262983f95163ab3820a261e33b mod_rest: Add mapping for XEP-0215: External Service Discovery Enough to query and retrieve services. diff -r dcafddc31b1c -r 611bc06c4160 mod_rest/res/schema-xmpp.json --- a/mod_rest/res/schema-xmpp.json Mon Oct 25 16:48:06 2021 +0200 +++ b/mod_rest/res/schema-xmpp.json Tue Oct 26 17:52:15 2021 +0200 @@ -62,6 +62,90 @@ "properties" : { "iq" : { "properties" : { + "extdisco" : { + "properties" : { + "services" : { + "items" : { + "properties" : { + "expires" : { + "format" : "datetime", + "type" : "string", + "xml" : { + "attribute" : true + } + }, + "host" : { + "required" : true, + "type" : "string", + "xml" : { + "attribute" : true + } + }, + "name" : { + "type" : "string", + "xml" : { + "attribute" : true + } + }, + "password" : { + "type" : "string", + "xml" : { + "attribute" : true + } + }, + "port" : { + "type" : "integer", + "xml" : { + "attribute" : true + } + }, + "restricted" : { + "type" : "boolean", + "xml" : { + "attribute" : true + } + }, + "transport" : { + "type" : "string", + "xml" : { + "attribute" : true + } + }, + "type" : { + "required" : true, + "type" : "string", + "xml" : { + "attribute" : true + } + }, + "username" : { + "type" : "string", + "xml" : { + "attribute" : true + } + } + }, + "type" : "object", + "xml" : { + "name" : "service" + } + }, + "type" : "array" + }, + "type" : { + "type" : "string", + "xml" : { + "attribute" : true + } + } + }, + "title" : "XEP-0215: External Service Discovery", + "type" : "object", + "xml" : { + "name" : "services", + "namespace" : "urn:xmpp:extdisco:2" + } + }, "gateway" : { "properties" : { "desc" : {