From c76ecc3ff746d78519404db4c525fd024f9a51c0 Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Thu, 13 May 2021 23:40:34 +0200 Subject: paginate response for abuse list in openapi spec closes #4094 --- support/doc/api/openapi.yaml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/support/doc/api/openapi.yaml b/support/doc/api/openapi.yaml index 3f9fcd08b..fc62f95bb 100644 --- a/support/doc/api/openapi.yaml +++ b/support/doc/api/openapi.yaml @@ -2309,9 +2309,15 @@ paths: content: application/json: schema: - type: array - items: - $ref: '#/components/schemas/AbuseMessage' + type: object + properties: + total: + type: integer + example: 1 + data: + type: array + items: + $ref: '#/components/schemas/AbuseMessage' post: summary: Add message to an abuse -- cgit v1.2.3