Diff

mod_rest/res/openapi.yaml @ 5123:09dd378748b8

mod_rest: Add some GET-mapped iq-queries to OpenAPI documentation
author Kim Alvefur <zash@zash.se>
date Sat, 31 Dec 2022 16:57:40 +0100
parent 5080:ce9b836f66d5
child 5124:8d5b9245275d
line wrap: on
line diff
--- a/mod_rest/res/openapi.yaml	Sat Dec 31 15:32:25 2022 +0100
+++ b/mod_rest/res/openapi.yaml	Sat Dec 31 16:57:40 2022 +0100
@@ -203,6 +203,48 @@
         '200':
           $ref: '#/components/responses/success'
 
+  /rest/lastactivity/{to}:
+    get:
+      tags:
+      - query
+      summary: Query last activity of an entity. Sometimes used as "uptime" for servers.
+      security:
+      - basic: []
+      - token: []
+      parameters:
+      - $ref: '#/components/parameters/to'
+      responses:
+        '200':
+          $ref: '#/components/responses/success'
+
+  /rest/stats/{to}:
+    get:
+      tags:
+      - query
+      summary: Query an entity for statistics
+      security:
+      - basic: []
+      - token: []
+      parameters:
+      - $ref: '#/components/parameters/to'
+      responses:
+        '200':
+          $ref: '#/components/responses/success'
+
+  /rest/upload_request/{to}:
+    get:
+      tags:
+      - query
+      summary: Lorem ipsum
+      security:
+      - basic: []
+      - token: []
+      parameters:
+      - $ref: '#/components/parameters/to'
+      responses:
+        '200':
+          $ref: '#/components/responses/success'
+
 components:
   schemas:
     stanza: