Comparison

mod_rest/res/openapi.yaml @ 4959:0989dea9b356

mod_rest: Add various things to openapi spec These are already in xmpp-schema.json
author Kim Alvefur <zash@zash.se>
date Sun, 05 Jun 2022 21:59:17 +0200
parent 4958:2735e29cf94b
child 5080:ce9b836f66d5
comparison
equal deleted inserted replaced
4958:2735e29cf94b 4959:0989dea9b356
282 $ref: '#/components/schemas/reference' 282 $ref: '#/components/schemas/reference'
283 markable: 283 markable:
284 $ref: '#/components/schemas/markable' 284 $ref: '#/components/schemas/markable'
285 displayed: 285 displayed:
286 $ref: '#/components/schemas/displayed' 286 $ref: '#/components/schemas/displayed'
287 encryption:
288 $ref: '#/components/schemas/encryption'
287 289
288 error: 290 error:
289 $ref: '#/components/schemas/error' 291 $ref: '#/components/schemas/error'
290 292
291 presence: 293 presence:
799 example: '{"some":"json"}' 801 example: '{"some":"json"}'
800 type: object 802 type: object
801 datatype: 803 datatype:
802 example: urn:example:my-json#payload 804 example: urn:example:my-json#payload
803 type: string 805 type: string
806
807 rsm:
808 title: 'XEP-0059: Result Set Management'
809 xml:
810 name: set
811 namespace: http://jabber.org/protocol/rsm
812 type: object
813 properties:
814 last:
815 type: string
816 max:
817 type: integer
818 index:
819 type: integer
820 count:
821 type: integer
822 before:
823 type: string
824 after:
825 type: string
826 first:
827 type: string
828
829 archive_query:
830 title: 'XEP-0313: Message Archive Management'
831 type: object
832 properties:
833 queryid:
834 xml:
835 attribute: true
836 type: string
837 page:
838 $ref: '#/components/schemas/rsm'
839 form:
840 $ref: '#/components/schemas/dataform'
841 xml:
842 name: query
843 namespace: urn:xmpp:mam:2
844
845 archive_result:
846 title: 'XEP-0313: Message Archive Management'
847 xml:
848 namespace: urn:xmpp:mam:2
849 name: result
850 type: object
851 properties:
852 queryid:
853 type: string
854 xml:
855 attribute: true
856 forward:
857 $ref: '#/components/schemas/forwarded'
858
859 forwarded:
860 title: 'XEP-0297: Stanza Forwarding'
861 xml:
862 name: forwarded
863 namespace: urn:xmpp:forward:0
864 type: object
865 properties:
866 message:
867 $ref: '#/components/schemas/message'
868 delay:
869 $ref: '#/components/schemas/delay'
804 870
805 dataform: 871 dataform:
806 description: Data form 872 description: Data form
807 type: object 873 type: object
808 properties: 874 properties:
1229 size: 1295 size:
1230 type: integer 1296 type: integer
1231 xml: 1297 xml:
1232 attribute: true 1298 attribute: true
1233 1299
1300 encryption:
1301 title: 'XEP-0380: Explicit Message Encryption'
1302 type: string
1303 xml:
1304 x_single_attribute: namespace
1305 name: encryption
1306 namespace: urn:xmpp:eme:0
1307
1234 error: 1308 error:
1235 description: Description of something gone wrong. See the Stanza Errors section in RFC 6120. 1309 description: Description of something gone wrong. See the Stanza Errors section in RFC 6120.
1236 type: object 1310 type: object
1237 properties: 1311 properties:
1238 type: 1312 type: