Changeset

4574:38d80dbfee88

mod_rest: Add XEP-0012 to OpenAPI spec
author Kim Alvefur <zash@zash.se>
date Tue, 25 May 2021 16:49:51 +0200
parents 4573:766883d8fc9e
children 4575:5b4f43b90766
files mod_rest/res/openapi.yaml
diffstat 1 files changed, 18 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mod_rest/res/openapi.yaml	Tue May 25 16:49:32 2021 +0200
+++ b/mod_rest/res/openapi.yaml	Tue May 25 16:49:51 2021 +0200
@@ -276,6 +276,8 @@
           $ref: '#/components/schemas/ping'
         version:
           $ref: '#/components/schemas/version'
+        lastactivity:
+          $ref: '#/components/schemas/lastactivity'
         disco:
           $ref: '#/components/schemas/disco'
         items:
@@ -735,6 +737,22 @@
             xml:
               attribute: true
 
+    lastactivity:
+      type: object
+      xml:
+        name: query
+        namespace: jabber:iq:last
+      properties:
+        seconds:
+          type: integer
+          minimum: 0
+          xml:
+            attribute: true
+        status:
+          type: string
+          xml:
+            text: true
+
     caps:
       type: object
       xml: