aboutsummaryrefslogtreecommitdiffhomepage
path: root/support/doc/api
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-07-08 15:51:46 +0200
committerChocobozzz <chocobozzz@cpy.re>2020-07-10 14:02:41 +0200
commit310b5219b38427f0c2c7ba57225afdd8f3064380 (patch)
tree853ff7e4e66425ca47b0999384eeb08ed14b28ff /support/doc/api
parent811cef146c841ef8530bc812c05dfee77e0f2998 (diff)
downloadPeerTube-310b5219b38427f0c2c7ba57225afdd8f3064380.tar.gz
PeerTube-310b5219b38427f0c2c7ba57225afdd8f3064380.tar.zst
PeerTube-310b5219b38427f0c2c7ba57225afdd8f3064380.zip
Add new abuses tests
Diffstat (limited to 'support/doc/api')
-rw-r--r--support/doc/api/openapi.yaml24
1 files changed, 12 insertions, 12 deletions
diff --git a/support/doc/api/openapi.yaml b/support/doc/api/openapi.yaml
index 03e60925b..3b381bbb5 100644
--- a/support/doc/api/openapi.yaml
+++ b/support/doc/api/openapi.yaml
@@ -106,9 +106,9 @@ tags:
106 Managing plugins installed from a local path or from NPM, or search for new ones. 106 Managing plugins installed from a local path or from NPM, or search for new ones.
107 externalDocs: 107 externalDocs:
108 url: https://docs.joinpeertube.org/#/api-plugins 108 url: https://docs.joinpeertube.org/#/api-plugins
109 - name: Video Abuses 109 - name: Abuses
110 description: | 110 description: |
111 Video abuses deal with reports of local or remote videos alike. 111 Abuses deal with reports of local or remote videos/comments/accounts alike.
112 - name: Video 112 - name: Video
113 description: | 113 description: |
114 Operations dealing with listing, uploading, fetching or modifying videos. 114 Operations dealing with listing, uploading, fetching or modifying videos.
@@ -166,7 +166,7 @@ x-tagGroups:
166 - Search 166 - Search
167 - name: Moderation 167 - name: Moderation
168 tags: 168 tags:
169 - Video Abuses 169 - Abuses
170 - Video Blocks 170 - Video Blocks
171 - Account Blocks 171 - Account Blocks
172 - Server Blocks 172 - Server Blocks
@@ -1474,13 +1474,13 @@ paths:
1474 /videos/abuse: 1474 /videos/abuse:
1475 get: 1475 get:
1476 deprecated: true 1476 deprecated: true
1477 summary: List video abuses 1477 summary: List abuses
1478 security: 1478 security:
1479 - OAuth2: 1479 - OAuth2:
1480 - admin 1480 - admin
1481 - moderator 1481 - moderator
1482 tags: 1482 tags:
1483 - Video Abuses 1483 - Abuses
1484 parameters: 1484 parameters:
1485 - name: id 1485 - name: id
1486 in: query 1486 in: query
@@ -1508,7 +1508,7 @@ paths:
1508 type: string 1508 type: string
1509 - name: state 1509 - name: state
1510 in: query 1510 in: query
1511 description: 'The video playlist privacy (Pending = `1`, Rejected = `2`, Accepted = `3`)' 1511 description: 'The abuse state (Pending = `1`, Rejected = `2`, Accepted = `3`)'
1512 schema: 1512 schema:
1513 type: integer 1513 type: integer
1514 enum: 1514 enum:
@@ -1554,7 +1554,7 @@ paths:
1554 security: 1554 security:
1555 - OAuth2: [] 1555 - OAuth2: []
1556 tags: 1556 tags:
1557 - Video Abuses 1557 - Abuses
1558 - Videos 1558 - Videos
1559 parameters: 1559 parameters:
1560 - $ref: '#/components/parameters/idOrUUID' 1560 - $ref: '#/components/parameters/idOrUUID'
@@ -1607,7 +1607,7 @@ paths:
1607 - admin 1607 - admin
1608 - moderator 1608 - moderator
1609 tags: 1609 tags:
1610 - Video Abuses 1610 - Abuses
1611 parameters: 1611 parameters:
1612 - $ref: '#/components/parameters/idOrUUID' 1612 - $ref: '#/components/parameters/idOrUUID'
1613 - $ref: '#/components/parameters/abuseId' 1613 - $ref: '#/components/parameters/abuseId'
@@ -1626,11 +1626,11 @@ paths:
1626 '204': 1626 '204':
1627 description: successful operation 1627 description: successful operation
1628 '404': 1628 '404':
1629 description: video abuse not found 1629 description: abuse not found
1630 delete: 1630 delete:
1631 deprecated: true 1631 deprecated: true
1632 tags: 1632 tags:
1633 - Video Abuses 1633 - Abuses
1634 summary: Delete an abuse 1634 summary: Delete an abuse
1635 security: 1635 security:
1636 - OAuth2: 1636 - OAuth2:
@@ -3320,7 +3320,7 @@ components:
3320 name: abuseId 3320 name: abuseId
3321 in: path 3321 in: path
3322 required: true 3322 required: true
3323 description: Video abuse id 3323 description: Abuse id
3324 schema: 3324 schema:
3325 type: integer 3325 type: integer
3326 captionLanguage: 3326 captionLanguage:
@@ -5098,7 +5098,7 @@ components:
5098 5098
5099 - `2` NEW_COMMENT_ON_MY_VIDEO 5099 - `2` NEW_COMMENT_ON_MY_VIDEO
5100 5100
5101 - `3` NEW_VIDEO_ABUSE_FOR_MODERATORS 5101 - `3` NEW_ABUSE_FOR_MODERATORS
5102 5102
5103 - `4` BLACKLIST_ON_MY_VIDEO 5103 - `4` BLACKLIST_ON_MY_VIDEO
5104 5104