aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2021-05-11 21:44:27 +0200
committerRigel Kent <sendmemail@rigelk.eu>2021-05-11 21:44:32 +0200
commit4c440cedcc19a97f38356de67388bbaab65ab997 (patch)
tree20068cc71d49c8afd09d81e169fbcdb5cfb51654
parent77b0c6b58fdc2b194ebfc277fb274e281635b781 (diff)
downloadPeerTube-4c440cedcc19a97f38356de67388bbaab65ab997.tar.gz
PeerTube-4c440cedcc19a97f38356de67388bbaab65ab997.tar.zst
PeerTube-4c440cedcc19a97f38356de67388bbaab65ab997.zip
add rating field for video like endpoint in openapi spec
closes #4080
-rw-r--r--support/doc/api/openapi.yaml11
1 files changed, 11 insertions, 0 deletions
diff --git a/support/doc/api/openapi.yaml b/support/doc/api/openapi.yaml
index c201b52ba..20790faaa 100644
--- a/support/doc/api/openapi.yaml
+++ b/support/doc/api/openapi.yaml
@@ -2957,6 +2957,17 @@ paths:
2957 - Video Rates 2957 - Video Rates
2958 parameters: 2958 parameters:
2959 - $ref: '#/components/parameters/idOrUUID' 2959 - $ref: '#/components/parameters/idOrUUID'
2960 requestBody:
2961 content:
2962 application/json:
2963 schema:
2964 type: object
2965 properties:
2966 rating:
2967 type: string
2968 enum:
2969 - like
2970 - dislike
2960 responses: 2971 responses:
2961 '204': 2972 '204':
2962 description: successful operation 2973 description: successful operation