changeset 4497:4c262e5a02b5

mod_rest/openapi: Reorder request bodies becasue YAML Silly ordered key-value dicts, affecting how things show up in /that/ interactive documentation thing.
author Kim Alvefur <zash@zash.se>
date Thu, 04 Mar 2021 01:42:47 +0100
parents 8e9bff3cde4f
children 1776831d0fab
files mod_rest/openapi.yaml
diffstat 1 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/mod_rest/openapi.yaml	Thu Mar 04 01:28:26 2021 +0100
+++ b/mod_rest/openapi.yaml	Thu Mar 04 01:42:47 2021 +0100
@@ -3,7 +3,7 @@
 
 info:
   title: mod_rest API
-  version: 0.3.1
+  version: 0.3.2
   description: |
     API for sending and receiving stanzas, in a REST-ish fashion or by
     responding to webhooks. Multiple formats supported, including native XML
@@ -596,15 +596,15 @@
     common:
       required: true
       content:
+        application/json:
+          schema:
+            $ref: '#/components/schemas/stanza'
+        application/xmpp+xml:
+          schema:
+            description: Single XMPP stanza in XML format.
         application/x-www-form-urlencoded:
           schema:
             description: A subset of the JSON schema, only top level string fields.
-        application/xmpp+xml:
-          schema:
-            description: Single XMPP stanza in XML format.
-        application/json:
-          schema:
-            $ref: '#/components/schemas/stanza'
 
   responses:
     success: