comparison mod_rest/res/openapi.yaml @ 4889:52522c71ad1a

mod_rest: Add XEP-0363 HTTP Upload to schemas
author Kim Alvefur <zash@zash.se>
date Wed, 09 Feb 2022 00:34:36 +0100
parents 75543146e94e
children 65438e4ba563
comparison
equal deleted inserted replaced
4888:dc7c9ae15f43 4889:52522c71ad1a
336 $ref: '#/components/schemas/gateway' 336 $ref: '#/components/schemas/gateway'
337 register: 337 register:
338 $ref: '#/components/schemas/register' 338 $ref: '#/components/schemas/register'
339 extdisco: 339 extdisco:
340 $ref: '#/components/schemas/extdisco' 340 $ref: '#/components/schemas/extdisco'
341 upload_request:
342 $ref: '#/components/schemas/upload_request'
343 upload_slot:
344 $ref: '#/components/schemas/upload_slot'
341 345
342 error: 346 error:
343 $ref: '#/components/schemas/error' 347 $ref: '#/components/schemas/error'
344 348
345 iq_pong: 349 iq_pong:
1079 type: string 1083 type: string
1080 required: 1084 required:
1081 - username 1085 - username
1082 - password 1086 - password
1083 1087
1088 upload_slot:
1089 type: object
1090 xml:
1091 name: slot
1092 namespace: urn:xmpp:http:upload:0
1093 properties:
1094 put:
1095 type: object
1096 properties:
1097 url:
1098 type: string
1099 format: uri
1100 xml:
1101 attribute: true
1102 headers:
1103 type: array
1104 items:
1105 type: object
1106 required:
1107 - name
1108 - value
1109 xml:
1110 name: header
1111 properties:
1112 name:
1113 type: string
1114 enum:
1115 - Authorization
1116 - Cookie
1117 - Expires
1118 xml:
1119 attribute: true
1120 value:
1121 type: string
1122 xml:
1123 text: true
1124 get:
1125 type: object
1126 properties:
1127 url:
1128 type: string
1129 format: uri
1130 xml:
1131 attribute: true
1132 upload_request:
1133 type: object
1134 required:
1135 - filename
1136 - size
1137 xml:
1138 name: request
1139 namespace: urn:xmpp:http:upload:0
1140 properties:
1141 filename:
1142 type: string
1143 xml:
1144 attribute: true
1145 content-type:
1146 xml:
1147 attribute: true
1148 name: content-type
1149 size:
1150 type: integer
1151 xml:
1152 attribute: true
1153
1084 error: 1154 error:
1085 description: Description of something gone wrong. See the Stanza Errors section in RFC 6120. 1155 description: Description of something gone wrong. See the Stanza Errors section in RFC 6120.
1086 type: object 1156 type: object
1087 properties: 1157 properties:
1088 type: 1158 type: