# HG changeset patch # User Kim Alvefur # Date 1614818567 -3600 # Node ID 4c262e5a02b5e917c3e06beffc6b4fc6a65e5361 # Parent 8e9bff3cde4f75ce09819611c771d0f1836cc1a7 mod_rest/openapi: Reorder request bodies becasue YAML Silly ordered key-value dicts, affecting how things show up in /that/ interactive documentation thing. diff -r 8e9bff3cde4f -r 4c262e5a02b5 mod_rest/openapi.yaml --- 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: