# HG changeset patch # User Kim Alvefur # Date 1653166677 -7200 # Node ID 2ff1fa824c5da7292be9a36619d5cf19c05f1fa9 # Parent b171ddf1bc3e8bdad57e74d889d01265f84d9558 mod_rest: Document /archive/ in openapi spec diff -r b171ddf1bc3e -r 2ff1fa824c5d mod_rest/res/openapi.yaml --- a/mod_rest/res/openapi.yaml Sat May 21 22:55:41 2022 +0200 +++ b/mod_rest/res/openapi.yaml Sat May 21 22:57:57 2022 +0200 @@ -151,6 +151,58 @@ '200': $ref: '#/components/responses/success' + + /rest/archive/{to}: + get: + tags: + - query + summary: Query a message archive + security: + - basic: [] + - token: [] + parameters: + - $ref: '#/components/parameters/to' + - name: with + in: query + schema: + type: string + - name: start + in: query + schema: + type: string + - name: end + in: query + schema: + type: string + - name: before-id + in: query + schema: + type: string + - name: after-id + in: query + schema: + type: string + - name: ids + in: query + schema: + type: string + description: comma-separated list of archive ids + - name: after + in: query + schema: + type: string + - name: before + in: query + schema: + type: string + - name: max + in: query + schema: + type: integer + responses: + '200': + $ref: '#/components/responses/success' + components: schemas: stanza: