]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
add rating field for video like endpoint in openapi spec
authorRigel Kent <sendmemail@rigelk.eu>
Tue, 11 May 2021 19:44:27 +0000 (21:44 +0200)
committerRigel Kent <sendmemail@rigelk.eu>
Tue, 11 May 2021 19:44:32 +0000 (21:44 +0200)
closes #4080

support/doc/api/openapi.yaml

index c201b52baf4cd33458470eeffa549e480ac9cc1d..20790faaafceb93e75b0b3fd64cf096057536b8c 100644 (file)
@@ -2957,6 +2957,17 @@ paths:
         - Video Rates
       parameters:
         - $ref: '#/components/parameters/idOrUUID'
+      requestBody:
+        content:
+          application/json:
+            schema:
+              type: object
+              properties:
+                rating:
+                  type: string
+                  enum:
+                    - like
+                    - dislike
       responses:
         '204':
           description: successful operation