mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-24 03:43:19 +03:00
Updated public API
This commit is contained in:
@@ -1,17 +1,16 @@
|
|||||||
openapi: 3.0.0
|
openapi: 3.0.0
|
||||||
info:
|
info:
|
||||||
title: Version 1
|
title: Version 1
|
||||||
version: "1.0"
|
version: '1.0'
|
||||||
servers:
|
servers:
|
||||||
- url: http://localhost:17442
|
- url: 'http://localhost:17442'
|
||||||
paths:
|
paths:
|
||||||
/api/tomp3:
|
/api/tomp3:
|
||||||
post:
|
post:
|
||||||
tags:
|
tags:
|
||||||
- downloader
|
- downloader
|
||||||
summary: Download audio file
|
summary: Download audio file
|
||||||
description: Downloads an audio file with the given URL. Will include global
|
description: Downloads an audio file with the given URL. Will include global args if they exist.
|
||||||
args if they exist.
|
|
||||||
operationId: post-tomp3
|
operationId: post-tomp3
|
||||||
requestBody:
|
requestBody:
|
||||||
content:
|
content:
|
||||||
@@ -19,7 +18,7 @@ paths:
|
|||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/body'
|
$ref: '#/components/schemas/body'
|
||||||
responses:
|
responses:
|
||||||
"200":
|
'200':
|
||||||
description: OK
|
description: OK
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
@@ -30,8 +29,7 @@ paths:
|
|||||||
tags:
|
tags:
|
||||||
- downloader
|
- downloader
|
||||||
summary: Download video file
|
summary: Download video file
|
||||||
description: Downloads a video file with the given URL. Will include global
|
description: Downloads a video file with the given URL. Will include global args if they exist.
|
||||||
args if they exist.
|
|
||||||
operationId: post-tomp4
|
operationId: post-tomp4
|
||||||
requestBody:
|
requestBody:
|
||||||
content:
|
content:
|
||||||
@@ -39,7 +37,7 @@ paths:
|
|||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/body_1'
|
$ref: '#/components/schemas/body_1'
|
||||||
responses:
|
responses:
|
||||||
"200":
|
'200':
|
||||||
description: OK
|
description: OK
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
@@ -53,7 +51,7 @@ paths:
|
|||||||
description: Gets all mp3 files and audio playlists stored in the db
|
description: Gets all mp3 files and audio playlists stored in the db
|
||||||
operationId: get-getMp3s
|
operationId: get-getMp3s
|
||||||
responses:
|
responses:
|
||||||
"200":
|
'200':
|
||||||
description: OK
|
description: OK
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
@@ -67,7 +65,7 @@ paths:
|
|||||||
description: Gets all mp4 files and video playlists stored in the db
|
description: Gets all mp4 files and video playlists stored in the db
|
||||||
operationId: get-getMp4s
|
operationId: get-getMp4s
|
||||||
responses:
|
responses:
|
||||||
"200":
|
'200':
|
||||||
description: OK
|
description: OK
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
@@ -78,8 +76,7 @@ paths:
|
|||||||
tags:
|
tags:
|
||||||
- files
|
- files
|
||||||
summary: Get file database object
|
summary: Get file database object
|
||||||
description: Gets a file db object by its uid and type. Type will be found if
|
description: Gets a file db object by its uid and type. Type will be found if not provided
|
||||||
not provided
|
|
||||||
operationId: post-getFile
|
operationId: post-getFile
|
||||||
requestBody:
|
requestBody:
|
||||||
content:
|
content:
|
||||||
@@ -87,7 +84,7 @@ paths:
|
|||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/body_2'
|
$ref: '#/components/schemas/body_2'
|
||||||
responses:
|
responses:
|
||||||
"200":
|
'200':
|
||||||
description: OK
|
description: OK
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
@@ -107,7 +104,7 @@ paths:
|
|||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/body_3'
|
$ref: '#/components/schemas/body_3'
|
||||||
responses:
|
responses:
|
||||||
"200":
|
'200':
|
||||||
description: OK
|
description: OK
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
@@ -127,7 +124,7 @@ paths:
|
|||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/body_4'
|
$ref: '#/components/schemas/body_4'
|
||||||
responses:
|
responses:
|
||||||
"200":
|
'200':
|
||||||
description: OK
|
description: OK
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
@@ -138,8 +135,7 @@ paths:
|
|||||||
tags:
|
tags:
|
||||||
- subscriptions
|
- subscriptions
|
||||||
summary: Subscribe to channel or playlist
|
summary: Subscribe to channel or playlist
|
||||||
description: Allows you to subscribe to channels and playlists. Name is optional
|
description: Allows you to subscribe to channels and playlists. Name is optional (will use the channel/playlist name)
|
||||||
(will use the channel/playlist name)
|
|
||||||
operationId: post-api-subscribe
|
operationId: post-api-subscribe
|
||||||
requestBody:
|
requestBody:
|
||||||
content:
|
content:
|
||||||
@@ -147,7 +143,7 @@ paths:
|
|||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/body_5'
|
$ref: '#/components/schemas/body_5'
|
||||||
responses:
|
responses:
|
||||||
"200":
|
'200':
|
||||||
description: OK
|
description: OK
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
@@ -166,7 +162,7 @@ paths:
|
|||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/body_6'
|
$ref: '#/components/schemas/body_6'
|
||||||
responses:
|
responses:
|
||||||
"200":
|
'200':
|
||||||
description: OK
|
description: OK
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
@@ -185,13 +181,13 @@ paths:
|
|||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/body_7'
|
$ref: '#/components/schemas/body_7'
|
||||||
responses:
|
responses:
|
||||||
"200":
|
'200':
|
||||||
description: OK
|
description: OK
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/inline_response_200_8'
|
$ref: '#/components/schemas/inline_response_200_8'
|
||||||
"500":
|
'500':
|
||||||
description: Internal Server Error
|
description: Internal Server Error
|
||||||
/api/getSubscription:
|
/api/getSubscription:
|
||||||
post:
|
post:
|
||||||
@@ -206,7 +202,7 @@ paths:
|
|||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/body_8'
|
$ref: '#/components/schemas/body_8'
|
||||||
responses:
|
responses:
|
||||||
"200":
|
'200':
|
||||||
description: OK
|
description: OK
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
@@ -217,8 +213,7 @@ paths:
|
|||||||
tags:
|
tags:
|
||||||
- subscriptions
|
- subscriptions
|
||||||
summary: Download videos for subscription
|
summary: Download videos for subscription
|
||||||
description: Manually check the subscription for new videos. When used on newly
|
description: 'Manually check the subscription for new videos. When used on newly created subscriptions, it will grab all possible videos'
|
||||||
created subscriptions, it will grab all possible videos
|
|
||||||
operationId: post-api-downloadVideosForSubscription
|
operationId: post-api-downloadVideosForSubscription
|
||||||
requestBody:
|
requestBody:
|
||||||
content:
|
content:
|
||||||
@@ -226,7 +221,7 @@ paths:
|
|||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/body_9'
|
$ref: '#/components/schemas/body_9'
|
||||||
responses:
|
responses:
|
||||||
"200":
|
'200':
|
||||||
description: OK
|
description: OK
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
@@ -244,7 +239,7 @@ paths:
|
|||||||
schema:
|
schema:
|
||||||
type: object
|
type: object
|
||||||
responses:
|
responses:
|
||||||
"200":
|
'200':
|
||||||
description: OK
|
description: OK
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
@@ -263,7 +258,7 @@ paths:
|
|||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/body_10'
|
$ref: '#/components/schemas/body_10'
|
||||||
responses:
|
responses:
|
||||||
"200":
|
'200':
|
||||||
description: OK
|
description: OK
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
@@ -282,7 +277,7 @@ paths:
|
|||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/body_11'
|
$ref: '#/components/schemas/body_11'
|
||||||
responses:
|
responses:
|
||||||
"200":
|
'200':
|
||||||
description: OK
|
description: OK
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
@@ -301,7 +296,7 @@ paths:
|
|||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/body_12'
|
$ref: '#/components/schemas/body_12'
|
||||||
responses:
|
responses:
|
||||||
"200":
|
'200':
|
||||||
description: OK
|
description: OK
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
@@ -320,7 +315,7 @@ paths:
|
|||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/body_13'
|
$ref: '#/components/schemas/body_13'
|
||||||
responses:
|
responses:
|
||||||
"200":
|
'200':
|
||||||
description: OK
|
description: OK
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
@@ -329,7 +324,7 @@ paths:
|
|||||||
/api/deleteMp4:
|
/api/deleteMp4:
|
||||||
post:
|
post:
|
||||||
tags:
|
tags:
|
||||||
- playlists
|
- files
|
||||||
summary: Delete mp4 file
|
summary: Delete mp4 file
|
||||||
description: Deletes an mp4 file by its uid
|
description: Deletes an mp4 file by its uid
|
||||||
operationId: post-api-deleteMp4
|
operationId: post-api-deleteMp4
|
||||||
@@ -339,7 +334,7 @@ paths:
|
|||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/body_14'
|
$ref: '#/components/schemas/body_14'
|
||||||
responses:
|
responses:
|
||||||
"200":
|
'200':
|
||||||
description: OK
|
description: OK
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
@@ -362,8 +357,8 @@ paths:
|
|||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/body_15'
|
$ref: '#/components/schemas/body_15'
|
||||||
responses:
|
responses:
|
||||||
"200":
|
'200':
|
||||||
description: The file itself is in the response, as well as an options object.
|
description: 'The file itself is in the response, as well as an options object.'
|
||||||
/api/deleteFile:
|
/api/deleteFile:
|
||||||
post:
|
post:
|
||||||
tags:
|
tags:
|
||||||
@@ -376,7 +371,7 @@ paths:
|
|||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/body_16'
|
$ref: '#/components/schemas/body_16'
|
||||||
responses:
|
responses:
|
||||||
"200":
|
'200':
|
||||||
description: OK
|
description: OK
|
||||||
/api/downloadArchive:
|
/api/downloadArchive:
|
||||||
post:
|
post:
|
||||||
@@ -391,7 +386,7 @@ paths:
|
|||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/body_17'
|
$ref: '#/components/schemas/body_17'
|
||||||
responses:
|
responses:
|
||||||
"200":
|
'200':
|
||||||
description: The archive text file is sent as a response
|
description: The archive text file is sent as a response
|
||||||
/api/updaterStatus:
|
/api/updaterStatus:
|
||||||
get:
|
get:
|
||||||
@@ -401,7 +396,7 @@ paths:
|
|||||||
description: Gets the status of an update that is in progress
|
description: Gets the status of an update that is in progress
|
||||||
operationId: get-api-updaterStatus
|
operationId: get-api-updaterStatus
|
||||||
responses:
|
responses:
|
||||||
"200":
|
'200':
|
||||||
description: OK
|
description: OK
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
@@ -412,8 +407,7 @@ paths:
|
|||||||
tags:
|
tags:
|
||||||
- updating
|
- updating
|
||||||
summary: Update server
|
summary: Update server
|
||||||
description: Updates the server. If no tag is provided, the latest version will
|
description: 'Updates the server. If no tag is provided, the latest version will be used.'
|
||||||
be used.
|
|
||||||
operationId: post-api-updateServer
|
operationId: post-api-updateServer
|
||||||
requestBody:
|
requestBody:
|
||||||
content:
|
content:
|
||||||
@@ -421,7 +415,7 @@ paths:
|
|||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/body_18'
|
$ref: '#/components/schemas/body_18'
|
||||||
responses:
|
responses:
|
||||||
"200":
|
'200':
|
||||||
description: OK
|
description: OK
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
@@ -435,7 +429,7 @@ paths:
|
|||||||
description: Checks if the pin is set for settings
|
description: Checks if the pin is set for settings
|
||||||
operationId: post-api-isPinSet
|
operationId: post-api-isPinSet
|
||||||
responses:
|
responses:
|
||||||
"200":
|
'200':
|
||||||
description: OK
|
description: OK
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
@@ -446,8 +440,7 @@ paths:
|
|||||||
tags:
|
tags:
|
||||||
- security
|
- security
|
||||||
summary: Check if pin is correct
|
summary: Check if pin is correct
|
||||||
description: Checks the pin against an inputted one. Will return true if they
|
description: Checks the pin against an inputted one. Will return true if they match
|
||||||
match
|
|
||||||
operationId: post-api-checkPin
|
operationId: post-api-checkPin
|
||||||
requestBody:
|
requestBody:
|
||||||
content:
|
content:
|
||||||
@@ -455,7 +448,7 @@ paths:
|
|||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/body_19'
|
$ref: '#/components/schemas/body_19'
|
||||||
responses:
|
responses:
|
||||||
"200":
|
'200':
|
||||||
description: OK
|
description: OK
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
@@ -473,7 +466,7 @@ paths:
|
|||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/body_20'
|
$ref: '#/components/schemas/body_20'
|
||||||
responses:
|
responses:
|
||||||
"200":
|
'200':
|
||||||
description: OK
|
description: OK
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
@@ -487,7 +480,7 @@ paths:
|
|||||||
description: Generates and sets a new API key
|
description: Generates and sets a new API key
|
||||||
operationId: post-genapikey
|
operationId: post-genapikey
|
||||||
responses:
|
responses:
|
||||||
"200":
|
'200':
|
||||||
description: OK
|
description: OK
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
@@ -506,7 +499,7 @@ paths:
|
|||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/body_21'
|
$ref: '#/components/schemas/body_21'
|
||||||
responses:
|
responses:
|
||||||
"200":
|
'200':
|
||||||
description: OK
|
description: OK
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
@@ -517,10 +510,10 @@ paths:
|
|||||||
get:
|
get:
|
||||||
tags: []
|
tags: []
|
||||||
summary: Get config
|
summary: Get config
|
||||||
description: Gets the config file stored in 'default.json'
|
description: "Gets the config file stored in 'default.json'"
|
||||||
operationId: get-config
|
operationId: get-config
|
||||||
responses:
|
responses:
|
||||||
"200":
|
'200':
|
||||||
description: OK
|
description: OK
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
@@ -529,7 +522,7 @@ paths:
|
|||||||
/api/setConfig:
|
/api/setConfig:
|
||||||
post:
|
post:
|
||||||
summary: Set config
|
summary: Set config
|
||||||
description: Sets the 'default.json' config file to the 'new_config_file' object
|
description: "Sets the 'default.json' config file to the 'new_config_file' object"
|
||||||
operationId: post-api-setConfig
|
operationId: post-api-setConfig
|
||||||
requestBody:
|
requestBody:
|
||||||
content:
|
content:
|
||||||
@@ -537,7 +530,7 @@ paths:
|
|||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/body_22'
|
$ref: '#/components/schemas/body_22'
|
||||||
responses:
|
responses:
|
||||||
"200":
|
'200':
|
||||||
description: OK
|
description: OK
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
@@ -554,10 +547,10 @@ components:
|
|||||||
type: string
|
type: string
|
||||||
customQualityConfiguration:
|
customQualityConfiguration:
|
||||||
type: string
|
type: string
|
||||||
example: "251"
|
example: '251'
|
||||||
maxBitrate:
|
maxBitrate:
|
||||||
type: string
|
type: string
|
||||||
example: "160"
|
example: '160'
|
||||||
customArgs:
|
customArgs:
|
||||||
type: string
|
type: string
|
||||||
customOutput:
|
customOutput:
|
||||||
@@ -590,7 +583,7 @@ components:
|
|||||||
example: 242+251
|
example: 242+251
|
||||||
selectedHeight:
|
selectedHeight:
|
||||||
type: string
|
type: string
|
||||||
example: "1080"
|
example: '1080'
|
||||||
customArgs:
|
customArgs:
|
||||||
type: string
|
type: string
|
||||||
customOutput:
|
customOutput:
|
||||||
@@ -788,8 +781,7 @@ components:
|
|||||||
$ref: '#/components/schemas/apideleteSubscriptionFile_sub'
|
$ref: '#/components/schemas/apideleteSubscriptionFile_sub'
|
||||||
deleteForever:
|
deleteForever:
|
||||||
type: boolean
|
type: boolean
|
||||||
description: If true, does not remove id from archive. Only valid if youtube-dl
|
description: 'If true, does not remove id from archive. Only valid if youtube-dl archive is enabled in settings.'
|
||||||
archive is enabled in settings.
|
|
||||||
inline_response_200_8:
|
inline_response_200_8:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
|||||||
Reference in New Issue
Block a user