2018-01-24 03:44:52 -06:00
|
|
|
swagger: '2.0'
|
|
|
|
info:
|
2018-01-24 04:54:32 -06:00
|
|
|
title: PeerTube
|
2018-03-20 04:32:54 -05:00
|
|
|
version: 1.0.0-beta
|
2018-01-24 03:44:52 -06:00
|
|
|
description: Federated (ActivityPub) video streaming platform using P2P (BitTorrent) directly in the web browser with WebTorrent and Angular.
|
2018-03-07 06:13:40 -06:00
|
|
|
host: peertube.example.com
|
|
|
|
basePath: '/api/v1'
|
|
|
|
schemes:
|
|
|
|
- https
|
2018-01-24 03:44:52 -06:00
|
|
|
paths:
|
|
|
|
'/accounts/{id}':
|
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- Accounts
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
parameters:
|
|
|
|
- name: id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
description: 'The id of the account'
|
2018-02-17 12:24:56 -06:00
|
|
|
- name: start
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
type: number
|
|
|
|
description: 'starting page'
|
|
|
|
- name: stop
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
type: number
|
|
|
|
description: 'stoping page'
|
|
|
|
- name: sort
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
type: number
|
|
|
|
description: 'sorting'
|
2018-01-24 03:44:52 -06:00
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
description: successful operation
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/Account'
|
|
|
|
/accounts:
|
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- Accounts
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
description: successful operation
|
|
|
|
schema:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/Account'
|
|
|
|
/config:
|
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- Config
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
description: successful operation
|
|
|
|
schema:
|
2018-03-19 06:36:41 -05:00
|
|
|
$ref: '#/definitions/ServerConfig'
|
2018-01-24 03:44:52 -06:00
|
|
|
/jobs:
|
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- Job
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
produces:
|
|
|
|
- application/json
|
2018-02-17 12:24:56 -06:00
|
|
|
parameters:
|
|
|
|
- name: state
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
description: 'The id of the account'
|
|
|
|
- name: start
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
type: number
|
|
|
|
description: 'starting page'
|
|
|
|
- name: count
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
type: number
|
|
|
|
description: ''
|
|
|
|
- name: sort
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
type: number
|
|
|
|
description: 'sorting'
|
2018-01-24 03:44:52 -06:00
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
description: successful operation
|
|
|
|
schema:
|
|
|
|
type: array
|
|
|
|
items:
|
2018-03-19 06:36:41 -05:00
|
|
|
$ref: '#/definitions/Job'
|
2018-01-24 03:44:52 -06:00
|
|
|
'/server/following/{host}':
|
|
|
|
delete:
|
|
|
|
tags:
|
|
|
|
- ServerFollowing
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
parameters:
|
|
|
|
- name: host
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
description: 'The host to unfollow '
|
|
|
|
responses:
|
|
|
|
'201':
|
|
|
|
description: successful operation
|
|
|
|
/server/followers:
|
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- ServerFollowing
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
produces:
|
|
|
|
- application/json
|
2018-02-17 12:24:56 -06:00
|
|
|
parameters:
|
|
|
|
- name: start
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
type: number
|
|
|
|
description: 'starting page'
|
|
|
|
- name: stop
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
type: number
|
|
|
|
description: 'stoping page'
|
|
|
|
- name: sort
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
type: number
|
|
|
|
description: 'sorting'
|
2018-01-24 03:44:52 -06:00
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
description: successful operation
|
|
|
|
schema:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/Follow'
|
|
|
|
/server/following:
|
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- ServerFollowing
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
produces:
|
|
|
|
- application/json
|
2018-02-17 12:24:56 -06:00
|
|
|
parameters:
|
|
|
|
- name: start
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
type: number
|
|
|
|
description: 'starting page'
|
|
|
|
- name: stop
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
type: number
|
|
|
|
description: 'stoping page'
|
|
|
|
- name: sort
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
type: number
|
|
|
|
description: 'sorting'
|
2018-01-24 03:44:52 -06:00
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
description: successful operation
|
|
|
|
schema:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/Follow'
|
|
|
|
post:
|
|
|
|
tags:
|
|
|
|
- ServerFollowing
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
parameters:
|
|
|
|
- in: body
|
|
|
|
name: body
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/Follow'
|
|
|
|
responses:
|
|
|
|
'204':
|
|
|
|
description: successful operation
|
|
|
|
/users:
|
|
|
|
post:
|
|
|
|
tags:
|
|
|
|
- User
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
parameters:
|
|
|
|
- in: body
|
|
|
|
name: body
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/AddUser'
|
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
description: successful operation
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/AddUserResponse'
|
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- User
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
produces:
|
|
|
|
- application/json
|
2018-02-17 12:24:56 -06:00
|
|
|
parameters:
|
|
|
|
- name: start
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
type: number
|
|
|
|
description: 'starting page'
|
|
|
|
- name: stop
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
type: number
|
|
|
|
description: 'stoping page'
|
|
|
|
- name: sort
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
type: number
|
|
|
|
description: 'sorting'
|
2018-01-24 03:44:52 -06:00
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
description: successful operation
|
|
|
|
schema:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/User'
|
|
|
|
'/users/{id}':
|
|
|
|
delete:
|
|
|
|
tags:
|
|
|
|
- User
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
parameters:
|
|
|
|
- name: id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
description: 'The user id '
|
|
|
|
responses:
|
|
|
|
'204':
|
|
|
|
description: successful operation
|
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- User
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
parameters:
|
|
|
|
- name: id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
description: 'The user id '
|
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
description: successful operation
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/User'
|
|
|
|
put:
|
|
|
|
tags:
|
|
|
|
- User
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
parameters:
|
|
|
|
- name: id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
description: 'The user id '
|
|
|
|
- in: body
|
|
|
|
name: body
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/UpdateUser'
|
|
|
|
responses:
|
|
|
|
'204':
|
|
|
|
description: successful operation
|
|
|
|
/users/me:
|
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- User
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
description: successful operation
|
|
|
|
schema:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/User'
|
|
|
|
put:
|
|
|
|
tags:
|
|
|
|
- User
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
parameters:
|
|
|
|
- in: body
|
|
|
|
name: body
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/UpdateMe'
|
|
|
|
responses:
|
|
|
|
'204':
|
|
|
|
description: successful operation
|
|
|
|
/users/me/video-quota-used:
|
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- User
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
parameters: []
|
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
description: successful operation
|
|
|
|
schema:
|
|
|
|
type: number
|
|
|
|
'/users/me/videos/{videoId}/rating':
|
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- User
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
parameters:
|
|
|
|
- name: videoId
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
description: 'The video id '
|
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
description: successful operation
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/GetMeVideoRating'
|
|
|
|
/users/me/videos:
|
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- User
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
produces:
|
|
|
|
- application/json
|
2018-02-17 12:24:56 -06:00
|
|
|
parameters:
|
|
|
|
- name: start
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
type: number
|
|
|
|
description: 'starting page'
|
|
|
|
- name: stop
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
type: number
|
|
|
|
description: 'stoping page'
|
|
|
|
- name: sort
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
type: number
|
|
|
|
description: 'sorting'
|
2018-01-24 03:44:52 -06:00
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
description: successful operation
|
|
|
|
schema:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/Video'
|
|
|
|
/users/register:
|
|
|
|
post:
|
|
|
|
tags:
|
|
|
|
- User
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
parameters:
|
|
|
|
- in: body
|
|
|
|
name: body
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/RegisterUser'
|
|
|
|
responses:
|
|
|
|
'204':
|
|
|
|
description: successful operation
|
|
|
|
/users/me/avatar/pick:
|
|
|
|
post:
|
|
|
|
tags:
|
|
|
|
- User
|
|
|
|
consumes:
|
|
|
|
- multipart/form-data
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
parameters:
|
|
|
|
- in: formData
|
|
|
|
name: avatarfile
|
|
|
|
type: file
|
|
|
|
description: The file to upload.
|
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
description: successful operation
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/Avatar'
|
2018-01-25 11:39:51 -06:00
|
|
|
/videos:
|
2018-01-24 03:44:52 -06:00
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- Video
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
produces:
|
|
|
|
- application/json
|
2018-02-17 12:24:56 -06:00
|
|
|
parameters:
|
|
|
|
- name: start
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
type: number
|
|
|
|
description: 'starting page'
|
|
|
|
- name: stop
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
type: number
|
|
|
|
description: 'stoping page'
|
|
|
|
- name: sort
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
type: number
|
|
|
|
description: 'sorting'
|
2018-01-24 03:44:52 -06:00
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
description: successful operation
|
|
|
|
schema:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/Video'
|
2018-01-25 11:39:51 -06:00
|
|
|
/videos/categories:
|
2018-01-24 03:44:52 -06:00
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- Video
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
description: successful operation
|
|
|
|
schema:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: string
|
2018-01-25 11:39:51 -06:00
|
|
|
/videos/licences:
|
2018-01-24 03:44:52 -06:00
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- Video
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
description: successful operation
|
|
|
|
schema:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: string
|
2018-01-25 11:39:51 -06:00
|
|
|
/videos/languages:
|
2018-01-24 03:44:52 -06:00
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- Video
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
description: successful operation
|
|
|
|
schema:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: string
|
2018-01-25 11:39:51 -06:00
|
|
|
/videos/privacies:
|
2018-01-24 03:44:52 -06:00
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- Video
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
description: successful operation
|
|
|
|
schema:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: string
|
2018-01-25 11:39:51 -06:00
|
|
|
/videos/search:
|
2018-01-24 03:44:52 -06:00
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- Video
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
produces:
|
|
|
|
- application/json
|
2018-02-17 12:24:56 -06:00
|
|
|
parameters:
|
|
|
|
- name: start
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
type: number
|
|
|
|
description: 'starting page'
|
|
|
|
- name: stop
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
type: number
|
|
|
|
description: 'stoping page'
|
|
|
|
- name: sort
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
type: number
|
|
|
|
description: 'sorting'
|
2018-01-24 03:44:52 -06:00
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
description: successful operation
|
|
|
|
schema:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/Video'
|
2018-01-25 11:39:51 -06:00
|
|
|
"/videos/{id}":
|
2018-01-24 03:44:52 -06:00
|
|
|
put:
|
|
|
|
tags:
|
|
|
|
- Video
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
parameters:
|
|
|
|
- name: id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
description: 'The video id '
|
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
description: successful operation
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/Video'
|
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- Video
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
parameters:
|
|
|
|
- name: id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
description: 'The video id '
|
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
description: successful operation
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/Video'
|
|
|
|
delete:
|
|
|
|
tags:
|
|
|
|
- Video
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
parameters:
|
|
|
|
- name: id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
description: 'The video id '
|
|
|
|
responses:
|
|
|
|
'204':
|
|
|
|
description: successful operation
|
2018-01-25 11:39:51 -06:00
|
|
|
"/videos/{id}/description":
|
2018-01-24 03:44:52 -06:00
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- Video
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
parameters:
|
|
|
|
- name: id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
description: 'The video id '
|
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
description: successful operation
|
|
|
|
schema:
|
|
|
|
type: string
|
2018-01-25 11:39:51 -06:00
|
|
|
"/videos/{id}/views":
|
2018-01-24 03:44:52 -06:00
|
|
|
post:
|
|
|
|
tags:
|
|
|
|
- Video
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
parameters:
|
|
|
|
- name: id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
description: 'The video id '
|
|
|
|
responses:
|
|
|
|
'204':
|
|
|
|
description: successful operation
|
2018-01-25 11:39:51 -06:00
|
|
|
/videos/upload:
|
2018-01-24 03:44:52 -06:00
|
|
|
post:
|
|
|
|
tags:
|
|
|
|
- Video
|
|
|
|
consumes:
|
|
|
|
- multipart/form-data
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
parameters:
|
|
|
|
- in: formData
|
|
|
|
name: videofile
|
|
|
|
type: file
|
|
|
|
description: The file to upload.
|
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
description: successful operation
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/VideoUploadResponse'
|
2018-01-25 11:39:51 -06:00
|
|
|
/videos/abuse:
|
2018-01-24 03:44:52 -06:00
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- VideoAbuse
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
produces:
|
|
|
|
- application/json
|
2018-02-17 12:24:56 -06:00
|
|
|
parameters:
|
|
|
|
- name: start
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
type: number
|
|
|
|
description: 'starting page'
|
|
|
|
- name: stop
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
type: number
|
|
|
|
description: 'stoping page'
|
|
|
|
- name: sort
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
type: number
|
|
|
|
description: 'sorting'
|
2018-01-24 03:44:52 -06:00
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
description: successful operation
|
|
|
|
schema:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/VideoAbuse'
|
2018-01-25 11:39:51 -06:00
|
|
|
"/videos/{id}/abuse":
|
2018-01-24 03:44:52 -06:00
|
|
|
post:
|
|
|
|
tags:
|
|
|
|
- VideoAbuse
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
parameters:
|
|
|
|
- name: id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
description: 'The video id '
|
|
|
|
responses:
|
|
|
|
'204':
|
|
|
|
description: successful operation
|
2018-01-25 11:39:51 -06:00
|
|
|
"/videos/{videoId}/blacklist":
|
2018-01-24 03:44:52 -06:00
|
|
|
post:
|
|
|
|
tags:
|
|
|
|
- VideoBlacklist
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
parameters:
|
|
|
|
- name: videoId
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
description: 'The video id '
|
|
|
|
responses:
|
|
|
|
'204':
|
|
|
|
description: successful operation
|
|
|
|
delete:
|
|
|
|
tags:
|
|
|
|
- VideoBlacklist
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
parameters:
|
|
|
|
- name: videoId
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
description: 'The video id '
|
|
|
|
responses:
|
|
|
|
'204':
|
|
|
|
description: successful operation
|
2018-01-25 11:39:51 -06:00
|
|
|
/videos/blacklist:
|
2018-01-24 03:44:52 -06:00
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- VideoBlacklist
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
produces:
|
|
|
|
- application/json
|
2018-02-17 12:24:56 -06:00
|
|
|
parameters:
|
|
|
|
- name: start
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
type: number
|
|
|
|
description: 'starting page'
|
|
|
|
- name: stop
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
type: number
|
|
|
|
description: 'stoping page'
|
|
|
|
- name: sort
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
type: number
|
|
|
|
description: 'sorting'
|
2018-01-24 03:44:52 -06:00
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
description: successful operation
|
|
|
|
schema:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/VideoBlacklist'
|
2018-01-25 11:39:51 -06:00
|
|
|
/videos/channels:
|
2018-01-24 03:44:52 -06:00
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- VideoChannel
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
produces:
|
|
|
|
- application/json
|
2018-02-17 12:24:56 -06:00
|
|
|
parameters:
|
|
|
|
- name: start
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
type: number
|
|
|
|
description: 'starting page'
|
|
|
|
- name: stop
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
type: number
|
|
|
|
description: 'stoping page'
|
|
|
|
- name: sort
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
type: number
|
|
|
|
description: 'sorting'
|
2018-01-24 03:44:52 -06:00
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
description: successful operation
|
|
|
|
schema:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/VideoChannel'
|
|
|
|
post:
|
|
|
|
tags:
|
|
|
|
- VideoChannel
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
parameters:
|
|
|
|
- in: body
|
|
|
|
name: body
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/VideoChannelInput'
|
|
|
|
responses:
|
|
|
|
'204':
|
|
|
|
description: successful operation
|
2018-01-25 11:39:51 -06:00
|
|
|
"/videos/channels/{id}":
|
2018-01-24 03:44:52 -06:00
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- VideoChannel
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
parameters:
|
|
|
|
- name: id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
description: 'The video id '
|
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
description: successful operation
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/VideoChannel'
|
|
|
|
put:
|
|
|
|
tags:
|
|
|
|
- VideoChannel
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
parameters:
|
|
|
|
- name: id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
description: 'The video id '
|
|
|
|
- in: body
|
|
|
|
name: body
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/VideoChannelInput'
|
|
|
|
responses:
|
|
|
|
'204':
|
|
|
|
description: successful operation
|
|
|
|
delete:
|
|
|
|
tags:
|
|
|
|
- VideoChannel
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
parameters:
|
|
|
|
- name: id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
description: 'The video id '
|
|
|
|
responses:
|
|
|
|
'204':
|
|
|
|
description: successful operation
|
2018-01-25 11:39:51 -06:00
|
|
|
/videos/accounts/{accountId}/channels:
|
2018-01-24 03:44:52 -06:00
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- VideoChannel
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
parameters:
|
|
|
|
- name: accountId
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
description: 'The account id '
|
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
description: successful operation
|
|
|
|
schema:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/VideoChannel'
|
2018-01-25 11:39:51 -06:00
|
|
|
"/videos/{videoId}/comment-threads":
|
2018-01-24 03:44:52 -06:00
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- VideoComment
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
parameters:
|
|
|
|
- name: videoId
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
description: 'The video id '
|
2018-02-17 12:24:56 -06:00
|
|
|
- name: start
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
type: number
|
|
|
|
description: 'starting page'
|
|
|
|
- name: stop
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
type: number
|
|
|
|
description: 'stoping page'
|
|
|
|
- name: sort
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
type: number
|
|
|
|
description: 'sorting'
|
2018-01-24 03:44:52 -06:00
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
description: successful operation
|
2018-01-24 04:54:32 -06:00
|
|
|
schema:
|
2018-01-25 11:39:51 -06:00
|
|
|
$ref: '#/definitions/CommentThreadResponse'
|
2018-01-24 03:44:52 -06:00
|
|
|
post:
|
|
|
|
tags:
|
|
|
|
- VideoComment
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
parameters:
|
|
|
|
- name: videoId
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
description: 'The video id '
|
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
description: successful operation
|
2018-01-25 11:39:51 -06:00
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/CommentThreadPostResponse'
|
|
|
|
"/videos/{videoId}/comment-threads/{threadId}":
|
2018-01-24 03:44:52 -06:00
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- VideoComment
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
parameters:
|
|
|
|
- name: videoId
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
description: 'The video id '
|
|
|
|
- name: threadId
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
description: 'The thread id '
|
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
description: successful operation
|
2018-01-24 04:54:32 -06:00
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/VideoCommentThreadTree'
|
2018-01-25 11:39:51 -06:00
|
|
|
"/videos/{videoId}/comments/{commentId}":
|
2018-01-24 03:44:52 -06:00
|
|
|
post:
|
|
|
|
tags:
|
|
|
|
- VideoComment
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
parameters:
|
|
|
|
- name: videoId
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
description: 'The video id '
|
|
|
|
- name: commentId
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
description: 'The comment id '
|
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
description: successful operation
|
2018-01-25 11:39:51 -06:00
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/CommentThreadPostResponse'
|
2018-01-24 03:44:52 -06:00
|
|
|
delete:
|
|
|
|
tags:
|
|
|
|
- VideoComment
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
parameters:
|
|
|
|
- name: videoId
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
description: 'The video id '
|
|
|
|
- name: commentId
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
description: 'The comment id '
|
|
|
|
responses:
|
|
|
|
'204':
|
|
|
|
description: successful operation
|
2018-01-25 11:39:51 -06:00
|
|
|
"/videos/{id}/rate":
|
2018-01-24 03:44:52 -06:00
|
|
|
put:
|
|
|
|
tags:
|
|
|
|
- VideoRate
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
parameters:
|
|
|
|
- name: id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
description: 'The video id '
|
|
|
|
responses:
|
|
|
|
'204':
|
|
|
|
description: successful operation
|
|
|
|
definitions:
|
2018-03-19 06:36:41 -05:00
|
|
|
VideoConstant:
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: number
|
|
|
|
label:
|
|
|
|
type: string
|
2018-01-24 03:44:52 -06:00
|
|
|
Video:
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: number
|
|
|
|
uuid:
|
|
|
|
type: string
|
|
|
|
createdAt:
|
|
|
|
type: string
|
|
|
|
updatedAt:
|
|
|
|
type: string
|
|
|
|
category:
|
2018-03-19 06:36:41 -05:00
|
|
|
$ref: "#/definitions/VideoConstant"
|
2018-01-24 03:44:52 -06:00
|
|
|
licence:
|
2018-03-19 06:36:41 -05:00
|
|
|
$ref: "#/definitions/VideoConstant"
|
2018-01-24 03:44:52 -06:00
|
|
|
language:
|
2018-03-19 06:36:41 -05:00
|
|
|
$ref: "#/definitions/VideoConstant"
|
2018-01-24 03:44:52 -06:00
|
|
|
description:
|
|
|
|
type: string
|
|
|
|
duration:
|
|
|
|
type: number
|
|
|
|
isLocal:
|
|
|
|
type: boolean
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
thumbnailPath:
|
|
|
|
type: string
|
|
|
|
previewPath:
|
|
|
|
type: string
|
|
|
|
embedPath:
|
|
|
|
type: string
|
|
|
|
views:
|
|
|
|
type: number
|
|
|
|
likes:
|
|
|
|
type: number
|
|
|
|
dislikes:
|
|
|
|
type: number
|
|
|
|
nsfw:
|
|
|
|
type: boolean
|
2018-03-12 05:06:15 -05:00
|
|
|
account:
|
|
|
|
name: string
|
|
|
|
displayName: string
|
|
|
|
url: string
|
|
|
|
host: string
|
|
|
|
avatar:
|
|
|
|
$ref: "#/definitions/Avatar"
|
2018-01-24 03:44:52 -06:00
|
|
|
VideoAbuse:
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: number
|
|
|
|
reason:
|
|
|
|
type: string
|
2018-03-12 05:29:46 -05:00
|
|
|
reporterAccount:
|
|
|
|
$ref: "#/definitions/Account"
|
|
|
|
video:
|
|
|
|
id: number
|
|
|
|
name: string
|
|
|
|
uuid: string
|
|
|
|
url: string
|
2018-01-24 03:44:52 -06:00
|
|
|
createdAt:
|
|
|
|
type: string
|
|
|
|
VideoBlacklist:
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: number
|
|
|
|
videoId:
|
|
|
|
type: number
|
|
|
|
createdAt:
|
|
|
|
type: string
|
|
|
|
updatedAt:
|
|
|
|
type: string
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
uuid:
|
|
|
|
type: string
|
|
|
|
description:
|
|
|
|
type: string
|
|
|
|
duration:
|
|
|
|
type: number
|
|
|
|
views:
|
|
|
|
type: number
|
|
|
|
likes:
|
|
|
|
type: number
|
|
|
|
dislikes:
|
|
|
|
type: number
|
|
|
|
nsfw:
|
|
|
|
type: boolean
|
|
|
|
VideoChannel:
|
|
|
|
properties:
|
|
|
|
displayName:
|
|
|
|
type: string
|
|
|
|
description:
|
|
|
|
type: string
|
|
|
|
isLocal:
|
|
|
|
type: boolean
|
|
|
|
owner:
|
|
|
|
type: object
|
2018-03-19 06:36:41 -05:00
|
|
|
properties:
|
|
|
|
name:
|
2018-01-24 03:44:52 -06:00
|
|
|
type: string
|
2018-03-19 06:36:41 -05:00
|
|
|
uuid:
|
2018-01-24 03:44:52 -06:00
|
|
|
type: string
|
|
|
|
videos:
|
|
|
|
type: array
|
2018-03-19 06:36:41 -05:00
|
|
|
items:
|
2018-01-24 03:44:52 -06:00
|
|
|
$ref: "#/definitions/Video"
|
|
|
|
VideoComment:
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: number
|
|
|
|
url:
|
|
|
|
type: string
|
|
|
|
text:
|
|
|
|
type: string
|
|
|
|
threadId:
|
|
|
|
type: number
|
|
|
|
inReplyToCommentId:
|
|
|
|
type: number
|
|
|
|
videoId:
|
|
|
|
type: number
|
|
|
|
createdAt:
|
|
|
|
type: string
|
|
|
|
updatedAt:
|
|
|
|
type: string
|
|
|
|
totalReplies:
|
|
|
|
type: number
|
|
|
|
account:
|
|
|
|
$ref: "#/definitions/Account"
|
2018-01-24 04:54:32 -06:00
|
|
|
VideoCommentThreadTree:
|
|
|
|
properties:
|
|
|
|
comment:
|
|
|
|
$ref: "#/definitions/VideoComment"
|
|
|
|
children:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: "#/definitions/VideoCommentThreadTree"
|
2018-01-24 03:44:52 -06:00
|
|
|
Avatar:
|
|
|
|
properties:
|
|
|
|
path:
|
|
|
|
type: string
|
|
|
|
createdAt:
|
|
|
|
type: string
|
|
|
|
updatedAt:
|
|
|
|
type: string
|
|
|
|
Actor:
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: number
|
|
|
|
uuid:
|
|
|
|
type: string
|
|
|
|
url:
|
|
|
|
type: string
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
host:
|
|
|
|
type: string
|
|
|
|
followingCount:
|
|
|
|
type: number
|
|
|
|
followersCount:
|
|
|
|
type: number
|
|
|
|
createdAt:
|
|
|
|
type: string
|
|
|
|
updatedAt:
|
|
|
|
type: string
|
|
|
|
avatar:
|
|
|
|
$ref: "#/definitions/Avatar"
|
|
|
|
Account:
|
|
|
|
allOf:
|
|
|
|
- $ref: "#/definitions/Actor"
|
|
|
|
- properties:
|
|
|
|
displayName:
|
|
|
|
type: string
|
|
|
|
User:
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: number
|
|
|
|
username:
|
|
|
|
type: string
|
|
|
|
email:
|
|
|
|
type: string
|
|
|
|
displayNSFW:
|
|
|
|
type: boolean
|
|
|
|
autoPlayVideo:
|
|
|
|
type: boolean
|
|
|
|
role:
|
|
|
|
type: string
|
2018-03-19 06:36:41 -05:00
|
|
|
enum: [User, Moderator, Administrator]
|
2018-01-24 03:44:52 -06:00
|
|
|
videoQuota:
|
|
|
|
type: number
|
|
|
|
createdAt:
|
|
|
|
type: string
|
|
|
|
account:
|
|
|
|
$ref: "#/definitions/Account"
|
|
|
|
videoChannels:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: "#/definitions/VideoChannel"
|
|
|
|
ServerConfig:
|
|
|
|
properties:
|
2018-03-19 06:36:41 -05:00
|
|
|
signup:
|
2018-01-24 03:44:52 -06:00
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
allowed:
|
|
|
|
type: boolean
|
|
|
|
transcoding:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
enabledResolutions:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: number
|
|
|
|
avatar:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
file:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
size:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
max:
|
|
|
|
type: number
|
2018-03-19 06:36:41 -05:00
|
|
|
extensions:
|
2018-01-24 03:44:52 -06:00
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
video:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
file:
|
|
|
|
type: object
|
2018-03-19 06:36:41 -05:00
|
|
|
properties:
|
|
|
|
extensions:
|
2018-01-24 03:44:52 -06:00
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
Follow:
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: number
|
|
|
|
follower:
|
|
|
|
$ref: "#/definitions/Actor"
|
|
|
|
following:
|
|
|
|
$ref: "#/definitions/Actor"
|
|
|
|
score:
|
|
|
|
type: number
|
|
|
|
state:
|
|
|
|
type: string
|
|
|
|
enum: [pending, accepted]
|
|
|
|
createdAt:
|
|
|
|
type: string
|
|
|
|
updatedAt:
|
|
|
|
type: string
|
|
|
|
Job:
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: number
|
|
|
|
state:
|
|
|
|
type: string
|
|
|
|
enum: [pending, processing, error, success]
|
|
|
|
category:
|
|
|
|
type: string
|
|
|
|
enum: [transcoding, activitypub-http]
|
|
|
|
handlerName:
|
|
|
|
type: string
|
|
|
|
handlerInputData:
|
|
|
|
type: string
|
|
|
|
createdAt:
|
|
|
|
type: string
|
|
|
|
updatedAt:
|
|
|
|
type: string
|
|
|
|
|
|
|
|
#Api responses
|
|
|
|
AddUserResponse:
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: number
|
|
|
|
uuid:
|
|
|
|
type: string
|
|
|
|
VideoUploadResponse:
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: number
|
|
|
|
uuid:
|
|
|
|
type: string
|
2018-01-25 11:39:51 -06:00
|
|
|
CommentThreadResponse:
|
|
|
|
properties:
|
|
|
|
total:
|
|
|
|
type: number
|
|
|
|
data:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: "#/definitions/VideoComment"
|
|
|
|
CommentThreadPostResponse:
|
|
|
|
properties:
|
|
|
|
comment:
|
|
|
|
$ref: "#/definitions/VideoComment"
|
2018-01-24 03:44:52 -06:00
|
|
|
|
2018-01-25 11:39:51 -06:00
|
|
|
#request bodies
|
2018-01-24 03:44:52 -06:00
|
|
|
AddUser:
|
|
|
|
properties:
|
|
|
|
username:
|
|
|
|
type: string
|
|
|
|
description: 'The user username '
|
|
|
|
password:
|
|
|
|
type: string
|
|
|
|
description: 'The user password '
|
|
|
|
email:
|
|
|
|
type: string
|
|
|
|
description: 'The user email '
|
|
|
|
videoQuota:
|
|
|
|
type: string
|
|
|
|
description: 'The user videoQuota '
|
|
|
|
role:
|
|
|
|
type: string
|
|
|
|
description: 'The user role '
|
|
|
|
required:
|
|
|
|
- username
|
|
|
|
- password
|
|
|
|
- email
|
|
|
|
- videoQuota
|
|
|
|
- role
|
|
|
|
UpdateUser:
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: string
|
|
|
|
description: 'The user id '
|
|
|
|
email:
|
|
|
|
type: string
|
|
|
|
description: 'The updated email of the user '
|
|
|
|
videoQuota:
|
|
|
|
type: string
|
|
|
|
description: 'The updated videoQuota of the user '
|
|
|
|
role:
|
|
|
|
type: string
|
|
|
|
description: 'The updated role of the user '
|
|
|
|
required:
|
|
|
|
- id
|
|
|
|
- email
|
|
|
|
- videoQuota
|
|
|
|
- role
|
|
|
|
UpdateMe:
|
|
|
|
properties:
|
|
|
|
password:
|
|
|
|
type: string
|
|
|
|
description: 'Your new password '
|
|
|
|
email:
|
|
|
|
type: string
|
|
|
|
description: 'Your new email '
|
|
|
|
displayNSFW:
|
|
|
|
type: string
|
|
|
|
description: 'Your new displayNSFW '
|
|
|
|
autoPlayVideo:
|
|
|
|
type: string
|
|
|
|
description: 'Your new autoPlayVideo '
|
|
|
|
required:
|
|
|
|
- password
|
|
|
|
- email
|
|
|
|
- displayNSFW
|
|
|
|
- autoPlayVideo
|
|
|
|
GetMeVideoRating:
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: string
|
|
|
|
description: 'Id of the video '
|
|
|
|
rating:
|
|
|
|
type: number
|
|
|
|
description: 'Rating of the video '
|
|
|
|
required:
|
|
|
|
- id
|
|
|
|
- rating
|
|
|
|
RegisterUser:
|
|
|
|
properties:
|
|
|
|
username:
|
|
|
|
type: string
|
|
|
|
description: 'The username of the user '
|
|
|
|
password:
|
|
|
|
type: string
|
|
|
|
description: 'The password of the user '
|
|
|
|
email:
|
|
|
|
type: string
|
|
|
|
description: 'The email of the user '
|
|
|
|
required:
|
|
|
|
- username
|
|
|
|
- password
|
|
|
|
- email
|
|
|
|
VideoChannelInput:
|
|
|
|
properties:
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
description:
|
|
|
|
type: string
|