changeset 4529:c6d44e1fb4d9

mod_rest: Document the /echo endpoint in the openapi spec
author Kim Alvefur <zash@zash.se>
date Tue, 23 Mar 2021 22:08:38 +0100
parents fd15e7f00ff5
children 33c149d0261d
files mod_rest/res/openapi.yaml
diffstat 1 files changed, 14 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mod_rest/res/openapi.yaml	Tue Mar 23 20:27:44 2021 +0100
+++ b/mod_rest/res/openapi.yaml	Tue Mar 23 22:08:38 2021 +0100
@@ -47,6 +47,20 @@
         200:
           $ref: '#/components/responses/success'
 
+  /rest/echo:
+    post:
+      summary: Build as stanza and return it for inspection.
+      tags:
+      - debug
+      security:
+        - basic: []
+        - token: []
+      requestBody:
+        $ref: '#/components/requestBodies/common'
+      responses:
+        200:
+          $ref: '#/components/responses/success'
+
   /rest/ping/{to}:
     get:
       tags: