swagger: '2.0'
info:
title: PeerTube
- version: 1.0.0-alpha
+ version: 1.0.0-beta
description: Federated (ActivityPub) video streaming platform using P2P (BitTorrent) directly in the web browser with WebTorrent and Angular.
host: peertube.example.com
basePath: '/api/v1'
'200':
description: successful operation
schema:
- $ref: '#/definitions/ServerConfig'
+ $ref: '#/definitions/ServerConfig'
/jobs:
get:
tags:
schema:
type: array
items:
- $ref: '#/definitions/Job'
+ $ref: '#/definitions/Job'
'/server/following/{host}':
delete:
tags:
'204':
description: successful operation
definitions:
+ VideoConstant:
+ properties:
+ id:
+ type: number
+ label:
+ type: string
Video:
properties:
id:
type: string
updatedAt:
type: string
- categoryLabel:
- type: string
category:
- type: number
- licenceLabel:
- type: string
+ $ref: "#/definitions/VideoConstant"
licence:
- type: number
- languageLabel:
- type: string
+ $ref: "#/definitions/VideoConstant"
language:
- type: number
+ $ref: "#/definitions/VideoConstant"
description:
type: string
duration:
type: number
reason:
type: string
- reporterUsername:
- type: string
- reporterServerHost:
- type: string
- videoId:
- type: number
- videoUUID:
- type: string
- videoName:
- type: string
+ reporterAccount:
+ $ref: "#/definitions/Account"
+ video:
+ id: number
+ name: string
+ uuid: string
+ url: string
createdAt:
type: string
VideoBlacklist:
type: boolean
owner:
type: object
- properties:
- name:
+ properties:
+ name:
type: string
- uuid:
+ uuid:
type: string
videos:
type: array
- items:
+ items:
$ref: "#/definitions/Video"
VideoComment:
properties:
type: boolean
role:
type: string
- enum: [User, Moderator, Administrator]
+ enum: [User, Moderator, Administrator]
videoQuota:
type: number
createdAt:
$ref: "#/definitions/VideoChannel"
ServerConfig:
properties:
- signup:
+ signup:
type: object
properties:
allowed:
properties:
max:
type: number
- extensions:
+ extensions:
type: array
items:
type: string
properties:
file:
type: object
- properties:
- extensions:
+ properties:
+ extensions:
type: array
items:
type: string