Mercurial > prosody-modules
comparison mod_rest/res/openapi.yaml @ 5123:09dd378748b8
mod_rest: Add some GET-mapped iq-queries to OpenAPI documentation
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 31 Dec 2022 16:57:40 +0100 |
parents | ce9b836f66d5 |
children | 8d5b9245275d |
comparison
equal
deleted
inserted
replaced
5122:25f39ceccbca | 5123:09dd378748b8 |
---|---|
197 type: string | 197 type: string |
198 - name: max | 198 - name: max |
199 in: query | 199 in: query |
200 schema: | 200 schema: |
201 type: integer | 201 type: integer |
202 responses: | |
203 '200': | |
204 $ref: '#/components/responses/success' | |
205 | |
206 /rest/lastactivity/{to}: | |
207 get: | |
208 tags: | |
209 - query | |
210 summary: Query last activity of an entity. Sometimes used as "uptime" for servers. | |
211 security: | |
212 - basic: [] | |
213 - token: [] | |
214 parameters: | |
215 - $ref: '#/components/parameters/to' | |
216 responses: | |
217 '200': | |
218 $ref: '#/components/responses/success' | |
219 | |
220 /rest/stats/{to}: | |
221 get: | |
222 tags: | |
223 - query | |
224 summary: Query an entity for statistics | |
225 security: | |
226 - basic: [] | |
227 - token: [] | |
228 parameters: | |
229 - $ref: '#/components/parameters/to' | |
230 responses: | |
231 '200': | |
232 $ref: '#/components/responses/success' | |
233 | |
234 /rest/upload_request/{to}: | |
235 get: | |
236 tags: | |
237 - query | |
238 summary: Lorem ipsum | |
239 security: | |
240 - basic: [] | |
241 - token: [] | |
242 parameters: | |
243 - $ref: '#/components/parameters/to' | |
202 responses: | 244 responses: |
203 '200': | 245 '200': |
204 $ref: '#/components/responses/success' | 246 $ref: '#/components/responses/success' |
205 | 247 |
206 components: | 248 components: |