Diff

mod_rest/res/openapi.yaml @ 4801:b65955c0abd8

mod_rest: Add GET method of invoking XEP-0215 to openapi spec
author Kim Alvefur <zash@zash.se>
date Sun, 28 Nov 2021 21:27:44 +0100
parent 4800:1e2f53fb2099
child 4802:75543146e94e
line wrap: on
line diff
--- a/mod_rest/res/openapi.yaml	Sun Nov 28 21:26:52 2021 +0100
+++ b/mod_rest/res/openapi.yaml	Sun Nov 28 21:27:44 2021 +0100
@@ -132,6 +132,25 @@
         '200':
           $ref: '#/components/responses/success'
 
+  /rest/extdisco/{to}:
+    get:
+      tags:
+      - query
+      summary: Query a message archive
+      security:
+      - basic: []
+      - token: []
+      parameters:
+      - $ref: '#/components/parameters/to'
+      - name: type
+        in: query
+        schema:
+          type: string
+          example: stun
+      responses:
+        '200':
+          $ref: '#/components/responses/success'
+
 components:
   schemas:
     stanza: