ActivityPub-federated video streaming platform using P2P directly in your web browser
Improve abuse api doc
Chocobozzz50e16ccf61e4
diff --git a/support/doc/api/openapi.yaml b/support/doc/api/openapi.yamlindex 8de9c65058..6197a431fa 100644--- a/support/doc/api/openapi.yaml+++ b/support/doc/api/openapi.yaml@@ -63,7 +63,7 @@ tags:server then deals with inter-server ActivityPub operations and propagatesinformation across its social graph by posting activities to actors' inboxendpoints.- - name: Video Abuse+ - name: Video Abusesdescription: |Video abuses deal with reports of local or remote videos alike.- name: Video@@ -116,7 +116,7 @@ x-tagGroups:- Search- name: Moderationtags:- - Video Abuse+ - Video Abuses- Video Blacklist- name: Instance Configurationtags:@@ -538,7 +538,7 @@ paths:type: number'/users/me/videos/{videoId}/rating':get:- summary: Get rate of my user of a video+ summary: Get rate of my user for a videosecurity:- OAuth2: []tags:@@ -1197,7 +1197,7 @@ paths:- admin- moderatortags:- - Video Abuse+ - Video Abusesparameters:- $ref: '#/components/parameters/start'- $ref: '#/components/parameters/count'@@ -1217,12 +1217,63 @@ paths:security:- OAuth2: []tags:- - Video Abuse+ - Video Abuses+ - Videosparameters:- $ref: '#/components/parameters/idOrUUID'+ requestBody:+ content:+ application/json:+ schema:+ type: object+ properties:+ reason:+ description: Reason why the user reports this video+ type: string+ responses:+ '204':+ description: successful operation+ '/videos/{id}/abuse/{abuseId}':+ put:+ summary: Update an abuse+ security:+ - OAuth2:+ - admin+ - moderator+ tags:+ - Video Abusesresponses:'204':description: successful operation+ parameters:+ - $ref: '#/components/parameters/idOrUUID'+ - $ref: '#/components/parameters/abuseId'+ requestBody:+ content:+ application/json:+ schema:+ type: object+ properties:+ state:+ $ref: '#/components/schemas/VideoAbuseStateSet'+ moderationComment:+ type: string+ description: 'Update the comment of the video abuse for other admin/moderators'+ delete:+ summary: Delete an abuse+ security:+ - OAuth2:+ - admin+ - moderator+ tags:+ - Video Abuses+ responses:+ '204':+ description: successful operation+ parameters:+ - $ref: '#/components/parameters/idOrUUID'+ - $ref: '#/components/parameters/abuseId'+'/videos/{id}/blacklist':post:summary: Blacklist a video@@ -1973,6 +2024,13 @@ components:description: Playlist element idschema:type: number+ abuseId:+ name: abuseId+ in: path+ required: true+ description: Video abuse id+ schema:+ type: numbercaptionLanguage:name: captionLanguagein: path@@ -2183,6 +2241,7 @@ components:$ref: '#/components/schemas/VideoPrivacySet'label:type: string+VideoStateConstant:properties:id:@@ -2194,6 +2253,21 @@ components:description: 'The video state (Published = 1, to transcode = 2, to import = 3)'label:type: string++ VideoAbuseStateSet:+ type: integer+ enum:+ - 1+ - 2+ - 3+ description: 'The video playlist privacy (Pending = 1, Rejected = 2, Accepted = 3)'+ VideoAbuseStateConstant:+ properties:+ id:+ $ref: '#/components/schemas/VideoAbuseStateSet'+ label:+ type: string+VideoResolutionConstant:properties:id:@@ -2440,6 +2514,10 @@ components:type: stringreporterAccount:$ref: '#/components/schemas/Account'+ state:+ $ref: '#/components/schemas/VideoAbuseStateConstant'+ moderationComment:+ type: stringvideo:type: objectproperties:@@ -2449,8 +2527,6 @@ components:type: stringuuid:type: string- url:- type: stringcreatedAt:type: stringVideoBlacklist: