diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2021-05-13 23:40:34 +0200 |
---|---|---|
committer | Rigel Kent <sendmemail@rigelk.eu> | 2021-05-13 23:40:50 +0200 |
commit | c76ecc3ff746d78519404db4c525fd024f9a51c0 (patch) | |
tree | 0a8cedfc9ee5f4af2df29a4cd5a007d1c4b87cc2 /support/doc | |
parent | 65cb01a252a58f5faa1f83a80a3899282d4ce0bd (diff) | |
download | PeerTube-c76ecc3ff746d78519404db4c525fd024f9a51c0.tar.gz PeerTube-c76ecc3ff746d78519404db4c525fd024f9a51c0.tar.zst PeerTube-c76ecc3ff746d78519404db4c525fd024f9a51c0.zip |
paginate response for abuse list in openapi spec
closes #4094
Diffstat (limited to 'support/doc')
-rw-r--r-- | support/doc/api/openapi.yaml | 12 |
1 files 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: | |||
2309 | content: | 2309 | content: |
2310 | application/json: | 2310 | application/json: |
2311 | schema: | 2311 | schema: |
2312 | type: array | 2312 | type: object |
2313 | items: | 2313 | properties: |
2314 | $ref: '#/components/schemas/AbuseMessage' | 2314 | total: |
2315 | type: integer | ||
2316 | example: 1 | ||
2317 | data: | ||
2318 | type: array | ||
2319 | items: | ||
2320 | $ref: '#/components/schemas/AbuseMessage' | ||
2315 | 2321 | ||
2316 | post: | 2322 | post: |
2317 | summary: Add message to an abuse | 2323 | summary: Add message to an abuse |