Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

add rating field for video like endpoint in openapi spec

Rigel Kent4c440cedcc19
diff --git a/support/doc/api/openapi.yaml b/support/doc/api/openapi.yaml
index c201b52baf..20790faaaf 100644
--- a/support/doc/api/openapi.yaml
+++ b/support/doc/api/openapi.yaml
@@ -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