ActivityPub-federated video streaming platform using P2P directly in your web browser
fix video playlistId/videoId for video playlists in openapi spec
Rigel Kentc00100b607ab
diff --git a/support/doc/api/openapi.yaml b/support/doc/api/openapi.yamlindex fd227353d9..f99d49fefa 100644--- a/support/doc/api/openapi.yaml+++ b/support/doc/api/openapi.yaml@@ -1976,10 +1976,12 @@ paths:- $ref: '#/components/schemas/Video/properties/id'startAt:type: integer+ format: secondsdescription: Timestamp in the video that marks the beginning of the reportminimum: 0endAt:type: integer+ format: secondsdescription: Timestamp in the video that marks the ending of the reportminimum: 0comment:@@ -2564,13 +2566,13 @@ paths:thumbnailfile:contentType: image/jpeg- /video-playlists/{id}:+ /video-playlists/{playlistId}:get:summary: Get a video playlisttags:- Video Playlistsparameters:- - $ref: '#/components/parameters/idOrUUID'+ - $ref: '#/components/parameters/playlistId'responses:'200':description: successful operation@@ -2589,7 +2591,7 @@ paths:'204':description: successful operationparameters:- - $ref: '#/components/parameters/idOrUUID'+ - $ref: '#/components/parameters/playlistId'requestBody:content:multipart/form-data:@@ -2624,19 +2626,19 @@ paths:tags:- Video Playlistsparameters:- - $ref: '#/components/parameters/idOrUUID'+ - $ref: '#/components/parameters/playlistId'responses:'204':description: successful operation- /video-playlists/{id}/videos:+ /video-playlists/{playlistId}/videos:get:summary: 'List videos of a playlist'tags:- Videos- Video Playlistsparameters:- - $ref: '#/components/parameters/idOrUUID'+ - $ref: '#/components/parameters/playlistId'responses:'200':description: successful operation@@ -2645,14 +2647,14 @@ paths:schema:$ref: '#/components/schemas/VideoListResponse'post:- summary: 'Add a video in a playlist'+ summary: Add a video in a playlistsecurity:- OAuth2: []tags:- Videos- Video Playlistsparameters:- - $ref: '#/components/parameters/idOrUUID'+ - $ref: '#/components/parameters/playlistId'responses:'200':description: successful operation@@ -2666,6 +2668,7 @@ paths:properties:id:type: integer+ example: 2requestBody:content:application/json:@@ -2673,19 +2676,22 @@ paths:type: objectproperties:videoId:- allOf:+ oneOf:+ - $ref: '#/components/schemas/Video/properties/uuid'- $ref: '#/components/schemas/Video/properties/id'description: Video to add in the playliststartTimestamp:type: integer- description: Start the video at this specific timestamp (in seconds)+ format: seconds+ description: Start the video at this specific timestampstopTimestamp:type: integer- description: Stop the video at this specific timestamp (in seconds)+ format: seconds+ description: Stop the video at this specific timestamprequired:- videoId- /video-playlists/{id}/videos/reorder:+ /video-playlists/{playlistId}/videos/reorder:post:summary: 'Reorder a playlist'security:@@ -2693,7 +2699,7 @@ paths:tags:- Video Playlistsparameters:- - $ref: '#/components/parameters/idOrUUID'+ - $ref: '#/components/parameters/playlistId'responses:'204':description: successful operation@@ -2719,15 +2725,15 @@ paths:- startPosition- insertAfterPosition- /video-playlists/{id}/videos/{playlistElementId}:+ /video-playlists/{playlistId}/videos/{playlistElementId}:put:- summary: 'Update a playlist element'+ summary: Update a playlist elementsecurity:- OAuth2: []tags:- Video Playlistsparameters:- - $ref: '#/components/parameters/idOrUUID'+ - $ref: '#/components/parameters/playlistId'- $ref: '#/components/parameters/playlistElementId'responses:'204':@@ -2740,18 +2746,20 @@ paths:properties:startTimestamp:type: integer- description: 'Start the video at this specific timestamp (in seconds)'+ format: seconds+ description: Start the video at this specific timestampstopTimestamp:type: integer- description: 'Stop the video at this specific timestamp (in seconds)'+ format: seconds+ description: Stop the video at this specific timestampdelete:- summary: 'Delete an element from a playlist'+ summary: Delete an element from a playlistsecurity:- OAuth2: []tags:- Video Playlistsparameters:- - $ref: '#/components/parameters/idOrUUID'+ - $ref: '#/components/parameters/playlistId'- $ref: '#/components/parameters/playlistElementId'responses:'204':@@ -2759,7 +2767,7 @@ paths:'/users/me/video-playlists/videos-exist':get:- summary: 'Check video exists in my playlists'+ summary: Check video exists in my playlistssecurity:- OAuth2: []tags:@@ -2792,8 +2800,10 @@ paths:type: integerstartTimestamp:type: integer+ format: secondsstopTimestamp:type: integer+ format: seconds'/accounts/{name}/video-channels':get:@@ -3984,6 +3994,13 @@ components:oneOf:- $ref: '#/components/schemas/id'- $ref: '#/components/schemas/UUIDv4'+ playlistId:+ name: playlistId+ in: path+ required: true+ description: Playlist id+ schema:+ $ref: '#/components/schemas/VideoPlaylist/properties/id'playlistElementId:name: playlistElementIdin: path@@ -4447,8 +4464,10 @@ components:type: integerstartTimestamp:type: integer+ format: secondsstopTimestamp:type: integer+ format: secondsvideo:nullable: trueallOf:@@ -4597,6 +4616,7 @@ components:duration:type: integerexample: 1419+ format: secondsdescription: duration of the video in secondsisLocal:type: boolean@@ -5091,6 +5111,7 @@ components:properties:currentTime:type: integer+ format: secondsdescription: timestamp within the video, in secondsexample: 5ServerConfig: