openapi: 3.0.0
info:
title: PeerTube
- version: 1.2.1
+ version: 1.3.0-rc.1
contact:
name: PeerTube Community
url: 'https://joinpeertube.org'
$ref: '#/paths/~1users~1me/put/responses/204'
requestBody:
$ref: '#/components/requestBodies/VideoChannelInput'
- '/video-channels/{id}':
+ '/video-channels/{channelHandle}':
get:
summary: Get a video channel by its id
tags:
- Video Channel
parameters:
- - $ref: '#/components/parameters/id3'
+ - $ref: '#/components/parameters/channelHandle'
responses:
'200':
description: successful operation
tags:
- Video Channel
parameters:
- - $ref: '#/components/parameters/id3'
+ - $ref: '#/components/parameters/channelHandle'
responses:
'204':
$ref: '#/paths/~1users~1me/put/responses/204'
tags:
- Video Channel
parameters:
- - $ref: '#/components/parameters/id3'
+ - $ref: '#/components/parameters/channelHandle'
responses:
'204':
$ref: '#/paths/~1users~1me/put/responses/204'
- '/video-channels/{id}/videos':
+ '/video-channels/{channelHandle}/videos':
get:
summary: Get videos of a video channel by its id
tags:
- Video Channel
parameters:
- - $ref: '#/components/parameters/id3'
+ - $ref: '#/components/parameters/channelHandle'
responses:
'200':
description: successful operation
description: The video id or uuid
schema:
type: string
- id3:
- name: id
+ channelHandle:
+ name: channelHandle
in: path
required: true
- description: The video channel id or uuid
+ description: "The video channel handle (example: 'my_username@example.com' or 'my_username')"
schema:
type: string
commentId:
- Administrator
videoQuota:
type: number
+ videoQuotaDaily:
+ type: number
createdAt:
type: string
account:
videoQuota:
type: string
description: 'The user videoQuota '
+ videoQuotaDaily:
+ type: string
+ description: 'The user daily video quota '
role:
type: integer
format: int32
- password
- email
- videoQuota
+ - videoQuotaDaily
- role
UpdateUser:
properties:
videoQuota:
type: string
description: 'The updated videoQuota of the user '
+ videoQuotaDaily:
+ type: string
+ description: 'The updated daily video quota of the user '
role:
type: string
description: 'The updated role of the user '
- id
- email
- videoQuota
+ - videoQuotaDaily
- role
UpdateMe:
properties: