]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
modify response for adding abuse in openapi spec
authorRigel Kent <sendmemail@rigelk.eu>
Thu, 13 May 2021 21:37:35 +0000 (23:37 +0200)
committerRigel Kent <sendmemail@rigelk.eu>
Thu, 13 May 2021 21:37:39 +0000 (23:37 +0200)
closes #4093

support/doc/api/openapi.yaml

index 74d5c608cbdd39d5ea52dee62a1009b6227fab46..3f9fcd08bc01be179a0f995a6a39099136c87fa1 100644 (file)
@@ -2236,8 +2236,18 @@ paths:
               required:
                 - reason
       responses:
-        '204':
+        '200':
           description: successful operation
+          content:
+            application/json:
+              schema:
+                type: object
+                properties:
+                  abuse:
+                    type: object
+                    properties:
+                      id:
+                        $ref: '#/components/schemas/id'
         '400':
           description: incorrect request parameters
   '/abuses/{abuseId}':