Mercurial > prosody-modules
comparison mod_rest/res/openapi.yaml @ 4949:2ff1fa824c5d
mod_rest: Document /archive/ in openapi spec
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 21 May 2022 22:57:57 +0200 |
parents | a85efae90e21 |
children | 2735e29cf94b |
comparison
equal
deleted
inserted
replaced
4948:b171ddf1bc3e | 4949:2ff1fa824c5d |
---|---|
145 - name: type | 145 - name: type |
146 in: query | 146 in: query |
147 schema: | 147 schema: |
148 type: string | 148 type: string |
149 example: stun | 149 example: stun |
150 responses: | |
151 '200': | |
152 $ref: '#/components/responses/success' | |
153 | |
154 | |
155 /rest/archive/{to}: | |
156 get: | |
157 tags: | |
158 - query | |
159 summary: Query a message archive | |
160 security: | |
161 - basic: [] | |
162 - token: [] | |
163 parameters: | |
164 - $ref: '#/components/parameters/to' | |
165 - name: with | |
166 in: query | |
167 schema: | |
168 type: string | |
169 - name: start | |
170 in: query | |
171 schema: | |
172 type: string | |
173 - name: end | |
174 in: query | |
175 schema: | |
176 type: string | |
177 - name: before-id | |
178 in: query | |
179 schema: | |
180 type: string | |
181 - name: after-id | |
182 in: query | |
183 schema: | |
184 type: string | |
185 - name: ids | |
186 in: query | |
187 schema: | |
188 type: string | |
189 description: comma-separated list of archive ids | |
190 - name: after | |
191 in: query | |
192 schema: | |
193 type: string | |
194 - name: before | |
195 in: query | |
196 schema: | |
197 type: string | |
198 - name: max | |
199 in: query | |
200 schema: | |
201 type: integer | |
150 responses: | 202 responses: |
151 '200': | 203 '200': |
152 $ref: '#/components/responses/success' | 204 $ref: '#/components/responses/success' |
153 | 205 |
154 components: | 206 components: |