mod_rest: Add XEP-0012 to OpenAPI spec
authorKim Alvefur <zash@zash.se>
Tue, 25 May 2021 16:49:51 +0200
changeset 4578 38d80dbfee88
parent 4577 766883d8fc9e
child 4579 5b4f43b90766
mod_rest: Add XEP-0012 to OpenAPI spec
mod_rest/res/openapi.yaml
--- 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: