comparison mod_rest/res/openapi.yaml @ 4547:a9e997d5eb94

mod_rest: Replace 'oob_url' with datamapper-native 'oob' While 'oob_url' is simpler and covers all current use, it's harder to describe the XML mapping.
author Kim Alvefur <zash@zash.se>
date Sun, 25 Apr 2021 16:38:20 +0200
parents cfe196f88e96
children c50fac0f3cbf
comparison
equal deleted inserted replaced
4546:cfe196f88e96 4547:a9e997d5eb94
189 replace: 189 replace:
190 $ref: '#/components/schemas/replace' 190 $ref: '#/components/schemas/replace'
191 191
192 html: 192 html:
193 $ref: '#/components/schemas/html' 193 $ref: '#/components/schemas/html'
194 oob_url: 194 oob:
195 $ref: '#/components/schemas/oob_url' 195 $ref: '#/components/schemas/oob'
196 196
197 error: 197 error:
198 $ref: '#/components/schemas/error' 198 $ref: '#/components/schemas/error'
199 199
200 presence: 200 presence:
556 execute: 556 execute:
557 type: string 557 type: string
558 - type: string 558 - type: string
559 description: Call a command by 'node' id, without arguments 559 description: Call a command by 'node' id, without arguments
560 560
561 oob_url: 561 oob:
562 description: URL of an attached media file. 562 type: object
563 example: https://media.example.net/thisfile.jpg 563 description: Reference a media file
564 type: string 564 xml:
565 name: x
566 namespace: jabber:x:oob
567 properties:
568 url:
569 type: string
570 description: URL of the attached media file
571 example: https://media.example.net/thisfile.jpg
572 format: uri
573 desc:
574 description: Optional description
575 type: string
565 576
566 payload: 577 payload:
567 description: A piece of arbitrary JSON with a type field attached 578 description: A piece of arbitrary JSON with a type field attached
568 type: object 579 type: object
569 required: 580 required: