mirror of https://github.com/Chocobozzz/PeerTube
Add playlist exist api doc
parent
59c794a5dc
commit
0590bb4692
|
@ -1760,6 +1760,44 @@ paths:
|
||||||
'204':
|
'204':
|
||||||
description: successful operation
|
description: successful operation
|
||||||
|
|
||||||
|
'/users/me/video-playlists/videos-exist':
|
||||||
|
get:
|
||||||
|
summary: 'Check video exists in my playlists'
|
||||||
|
security:
|
||||||
|
- OAuth2: []
|
||||||
|
tags:
|
||||||
|
- Video Playlists
|
||||||
|
parameters:
|
||||||
|
- name: videoIds
|
||||||
|
in: query
|
||||||
|
required: true
|
||||||
|
description: The video ids to check
|
||||||
|
schema:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
type: number
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: successful operation
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
videoId:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
playlistElementId:
|
||||||
|
type: number
|
||||||
|
playlistId:
|
||||||
|
type: number
|
||||||
|
startTimestamp:
|
||||||
|
type: number
|
||||||
|
stopTimestamp:
|
||||||
|
type: number
|
||||||
|
|
||||||
'/accounts/{name}/video-channels':
|
'/accounts/{name}/video-channels':
|
||||||
get:
|
get:
|
||||||
summary: List video channels of an account
|
summary: List video channels of an account
|
||||||
|
@ -2316,6 +2354,21 @@ components:
|
||||||
label:
|
label:
|
||||||
type: string
|
type: string
|
||||||
|
|
||||||
|
NSFWPolicy:
|
||||||
|
type: string
|
||||||
|
enum:
|
||||||
|
- display
|
||||||
|
- blur
|
||||||
|
- do_not_list
|
||||||
|
|
||||||
|
UserRole:
|
||||||
|
type: number
|
||||||
|
enum:
|
||||||
|
- 0
|
||||||
|
- 1
|
||||||
|
- 2
|
||||||
|
description: 'The user role (Admin = 0, Moderator = 1, User = 2)'
|
||||||
|
|
||||||
VideoStateConstant:
|
VideoStateConstant:
|
||||||
properties:
|
properties:
|
||||||
id:
|
id:
|
||||||
|
@ -2756,17 +2809,20 @@ components:
|
||||||
type: string
|
type: string
|
||||||
email:
|
email:
|
||||||
type: string
|
type: string
|
||||||
displayNSFW:
|
theme:
|
||||||
|
type: string
|
||||||
|
description: 'Theme enabled by this user'
|
||||||
|
emailVerified:
|
||||||
|
type: boolean
|
||||||
|
description: 'Is email verified?'
|
||||||
|
nsfwPolicy:
|
||||||
|
$ref: '#/components/schemas/NSFWPolicy'
|
||||||
|
webtorrentEnabled:
|
||||||
type: boolean
|
type: boolean
|
||||||
autoPlayVideo:
|
autoPlayVideo:
|
||||||
type: boolean
|
type: boolean
|
||||||
role:
|
role:
|
||||||
type: integer
|
$ref: '#/components/schemas/UserRole'
|
||||||
enum:
|
|
||||||
- 0
|
|
||||||
- 1
|
|
||||||
- 2
|
|
||||||
description: 'The user role (Admin = 0, Moderator = 1, User = 2)'
|
|
||||||
roleLabel:
|
roleLabel:
|
||||||
type: string
|
type: string
|
||||||
enum:
|
enum:
|
||||||
|
@ -2777,6 +2833,24 @@ components:
|
||||||
type: number
|
type: number
|
||||||
videoQuotaDaily:
|
videoQuotaDaily:
|
||||||
type: number
|
type: number
|
||||||
|
videosCount:
|
||||||
|
type: number
|
||||||
|
videoAbusesCount:
|
||||||
|
type: number
|
||||||
|
videoAbusesAcceptedCount:
|
||||||
|
type: number
|
||||||
|
videoAbusesCreatedCount:
|
||||||
|
type: number
|
||||||
|
videoCommentsCount:
|
||||||
|
type: number
|
||||||
|
noInstanceConfigWarningModal:
|
||||||
|
type: boolean
|
||||||
|
noWelcomeModal:
|
||||||
|
type: boolean
|
||||||
|
blocked:
|
||||||
|
type: boolean
|
||||||
|
blockedReason:
|
||||||
|
type: string
|
||||||
createdAt:
|
createdAt:
|
||||||
type: string
|
type: string
|
||||||
account:
|
account:
|
||||||
|
@ -3242,12 +3316,7 @@ components:
|
||||||
type: string
|
type: string
|
||||||
description: 'The user daily video quota '
|
description: 'The user daily video quota '
|
||||||
role:
|
role:
|
||||||
type: integer
|
$ref: '#/components/schemas/UserRole'
|
||||||
enum:
|
|
||||||
- 0
|
|
||||||
- 1
|
|
||||||
- 2
|
|
||||||
description: 'The user role (Admin = 0, Moderator = 1, User = 2)'
|
|
||||||
required:
|
required:
|
||||||
- username
|
- username
|
||||||
- password
|
- password
|
||||||
|
@ -3270,12 +3339,7 @@ components:
|
||||||
type: string
|
type: string
|
||||||
description: 'The updated daily video quota of the user '
|
description: 'The updated daily video quota of the user '
|
||||||
role:
|
role:
|
||||||
type: integer
|
$ref: '#/components/schemas/UserRole'
|
||||||
enum:
|
|
||||||
- 0
|
|
||||||
- 1
|
|
||||||
- 2
|
|
||||||
description: 'The user role (Admin = 0, Moderator = 1, User = 2)'
|
|
||||||
required:
|
required:
|
||||||
- id
|
- id
|
||||||
- email
|
- email
|
||||||
|
|
Loading…
Reference in New Issue