mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-07 14:31:27 +03:00
Updated API docs
This commit is contained in:
@@ -1,7 +1,19 @@
|
|||||||
openapi: 3.0.0
|
openapi: 3.0.0
|
||||||
info:
|
info:
|
||||||
title: Version 1
|
title: YoutubeDL-Material API Docs - Official
|
||||||
version: '1.0'
|
version: '1.0'
|
||||||
|
description: |-
|
||||||
|
Welcome to the official docs for YoutubeDL-Material.
|
||||||
|
|
||||||
|
You can check out all the available endpoints. Remember to authenticate with your API key using the "Authorization" header with your requests.
|
||||||
|
|
||||||
|
To do so, simply add this header to your API calls:
|
||||||
|
|
||||||
|
`Authorization: API_KEY`
|
||||||
|
|
||||||
|
Note the space between 'Authorization:' and the API_KEY. This is required.
|
||||||
|
|
||||||
|
Reaplce API_KEY with the API key in the settings menu. If one doesn't exist, click generate to create one.
|
||||||
servers:
|
servers:
|
||||||
- url: 'http://localhost:17442'
|
- url: 'http://localhost:17442'
|
||||||
paths:
|
paths:
|
||||||
@@ -10,7 +22,10 @@ paths:
|
|||||||
tags:
|
tags:
|
||||||
- downloader
|
- downloader
|
||||||
summary: Download audio file
|
summary: Download audio file
|
||||||
description: Downloads an audio file with the given URL. Will include global args if they exist.
|
description: |-
|
||||||
|
Downloads an audio file with the given URL. Will include global args if they exist.
|
||||||
|
|
||||||
|
HTTP requests will return once the audio file download completes. In the future, it will (by default) return once the download starts, and a separate API call will be used for checking the download status.
|
||||||
operationId: post-tomp3
|
operationId: post-tomp3
|
||||||
requestBody:
|
requestBody:
|
||||||
content:
|
content:
|
||||||
@@ -24,12 +39,17 @@ paths:
|
|||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/inline_response_200'
|
$ref: '#/components/schemas/inline_response_200'
|
||||||
|
security:
|
||||||
|
- Authenticate: []
|
||||||
/api/tomp4:
|
/api/tomp4:
|
||||||
post:
|
post:
|
||||||
tags:
|
tags:
|
||||||
- downloader
|
- downloader
|
||||||
summary: Download video file
|
summary: Download video file
|
||||||
description: Downloads a video file with the given URL. Will include global args if they exist.
|
description: |-
|
||||||
|
Downloads a video file with the given URL. Will include global args if they exist.
|
||||||
|
|
||||||
|
HTTP requests will return once the video file download completes. In the future, it will (by default) return once the download starts, and a separate API call will be used for checking the download status.
|
||||||
operationId: post-tomp4
|
operationId: post-tomp4
|
||||||
requestBody:
|
requestBody:
|
||||||
content:
|
content:
|
||||||
@@ -43,6 +63,8 @@ paths:
|
|||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/inline_response_200_1'
|
$ref: '#/components/schemas/inline_response_200_1'
|
||||||
|
security:
|
||||||
|
- Authenticate: []
|
||||||
/api/getMp3s:
|
/api/getMp3s:
|
||||||
get:
|
get:
|
||||||
tags:
|
tags:
|
||||||
@@ -57,6 +79,9 @@ paths:
|
|||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/inline_response_200_2'
|
$ref: '#/components/schemas/inline_response_200_2'
|
||||||
|
requestBody: {}
|
||||||
|
security:
|
||||||
|
- Authenticate: []
|
||||||
/api/getMp4s:
|
/api/getMp4s:
|
||||||
get:
|
get:
|
||||||
tags:
|
tags:
|
||||||
@@ -71,6 +96,8 @@ paths:
|
|||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/inline_response_200_3'
|
$ref: '#/components/schemas/inline_response_200_3'
|
||||||
|
security:
|
||||||
|
- Authenticate: []
|
||||||
/api/getFile:
|
/api/getFile:
|
||||||
post:
|
post:
|
||||||
tags:
|
tags:
|
||||||
@@ -90,6 +117,8 @@ paths:
|
|||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/inline_response_200_4'
|
$ref: '#/components/schemas/inline_response_200_4'
|
||||||
|
security:
|
||||||
|
- Authenticate: []
|
||||||
/api/enableSharing:
|
/api/enableSharing:
|
||||||
post:
|
post:
|
||||||
tags:
|
tags:
|
||||||
@@ -110,6 +139,8 @@ paths:
|
|||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/inline_response_200_5'
|
$ref: '#/components/schemas/inline_response_200_5'
|
||||||
|
security:
|
||||||
|
- Authenticate: []
|
||||||
/api/disableSharing:
|
/api/disableSharing:
|
||||||
post:
|
post:
|
||||||
tags:
|
tags:
|
||||||
@@ -130,6 +161,8 @@ paths:
|
|||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/inline_response_200_5'
|
$ref: '#/components/schemas/inline_response_200_5'
|
||||||
|
security:
|
||||||
|
- Authenticate: []
|
||||||
/api/subscribe:
|
/api/subscribe:
|
||||||
post:
|
post:
|
||||||
tags:
|
tags:
|
||||||
@@ -149,6 +182,8 @@ paths:
|
|||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/inline_response_200_6'
|
$ref: '#/components/schemas/inline_response_200_6'
|
||||||
|
security:
|
||||||
|
- Authenticate: []
|
||||||
/api/unsubscribe:
|
/api/unsubscribe:
|
||||||
post:
|
post:
|
||||||
tags:
|
tags:
|
||||||
@@ -168,6 +203,8 @@ paths:
|
|||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/inline_response_200_7'
|
$ref: '#/components/schemas/inline_response_200_7'
|
||||||
|
security:
|
||||||
|
- Authenticate: []
|
||||||
/api/deleteSubscriptionFile:
|
/api/deleteSubscriptionFile:
|
||||||
post:
|
post:
|
||||||
tags:
|
tags:
|
||||||
@@ -189,6 +226,8 @@ paths:
|
|||||||
$ref: '#/components/schemas/inline_response_200_8'
|
$ref: '#/components/schemas/inline_response_200_8'
|
||||||
'500':
|
'500':
|
||||||
description: Internal Server Error
|
description: Internal Server Error
|
||||||
|
security:
|
||||||
|
- Authenticate: []
|
||||||
/api/getSubscription:
|
/api/getSubscription:
|
||||||
post:
|
post:
|
||||||
tags:
|
tags:
|
||||||
@@ -208,6 +247,8 @@ paths:
|
|||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/inline_response_200_9'
|
$ref: '#/components/schemas/inline_response_200_9'
|
||||||
|
security:
|
||||||
|
- Authenticate: []
|
||||||
/api/downloadVideosForSubscription:
|
/api/downloadVideosForSubscription:
|
||||||
post:
|
post:
|
||||||
tags:
|
tags:
|
||||||
@@ -227,6 +268,8 @@ paths:
|
|||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/inline_response_200_10'
|
$ref: '#/components/schemas/inline_response_200_10'
|
||||||
|
security:
|
||||||
|
- Authenticate: []
|
||||||
/api/getAllSubscriptions:
|
/api/getAllSubscriptions:
|
||||||
post:
|
post:
|
||||||
tags:
|
tags:
|
||||||
@@ -245,6 +288,8 @@ paths:
|
|||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/inline_response_200_11'
|
$ref: '#/components/schemas/inline_response_200_11'
|
||||||
|
security:
|
||||||
|
- Authenticate: []
|
||||||
/api/createPlaylist:
|
/api/createPlaylist:
|
||||||
post:
|
post:
|
||||||
tags:
|
tags:
|
||||||
@@ -264,6 +309,8 @@ paths:
|
|||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/inline_response_200_12'
|
$ref: '#/components/schemas/inline_response_200_12'
|
||||||
|
security:
|
||||||
|
- Authenticate: []
|
||||||
/api/getPlaylist:
|
/api/getPlaylist:
|
||||||
post:
|
post:
|
||||||
tags:
|
tags:
|
||||||
@@ -283,6 +330,8 @@ paths:
|
|||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/inline_response_200_13'
|
$ref: '#/components/schemas/inline_response_200_13'
|
||||||
|
security:
|
||||||
|
- Authenticate: []
|
||||||
/api/updatePlaylist:
|
/api/updatePlaylist:
|
||||||
post:
|
post:
|
||||||
tags:
|
tags:
|
||||||
@@ -302,6 +351,8 @@ paths:
|
|||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/inline_response_200_5'
|
$ref: '#/components/schemas/inline_response_200_5'
|
||||||
|
security:
|
||||||
|
- Authenticate: []
|
||||||
/api/deletePlaylist:
|
/api/deletePlaylist:
|
||||||
post:
|
post:
|
||||||
tags:
|
tags:
|
||||||
@@ -321,6 +372,8 @@ paths:
|
|||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/inline_response_200_5'
|
$ref: '#/components/schemas/inline_response_200_5'
|
||||||
|
security:
|
||||||
|
- Authenticate: []
|
||||||
/api/deleteMp4:
|
/api/deleteMp4:
|
||||||
post:
|
post:
|
||||||
tags:
|
tags:
|
||||||
@@ -341,6 +394,8 @@ paths:
|
|||||||
schema:
|
schema:
|
||||||
type: boolean
|
type: boolean
|
||||||
description: Whether the operation succeeded
|
description: Whether the operation succeeded
|
||||||
|
security:
|
||||||
|
- Authenticate: []
|
||||||
/api/downloadFile:
|
/api/downloadFile:
|
||||||
post:
|
post:
|
||||||
tags:
|
tags:
|
||||||
@@ -359,6 +414,8 @@ paths:
|
|||||||
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.'
|
||||||
|
security:
|
||||||
|
- Authenticate: []
|
||||||
/api/deleteFile:
|
/api/deleteFile:
|
||||||
post:
|
post:
|
||||||
tags:
|
tags:
|
||||||
@@ -373,6 +430,8 @@ paths:
|
|||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
description: OK
|
description: OK
|
||||||
|
security:
|
||||||
|
- Authenticate: []
|
||||||
/api/downloadArchive:
|
/api/downloadArchive:
|
||||||
post:
|
post:
|
||||||
tags:
|
tags:
|
||||||
@@ -388,6 +447,8 @@ paths:
|
|||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
description: The archive text file is sent as a response
|
description: The archive text file is sent as a response
|
||||||
|
security:
|
||||||
|
- Authenticate: []
|
||||||
/api/updaterStatus:
|
/api/updaterStatus:
|
||||||
get:
|
get:
|
||||||
tags:
|
tags:
|
||||||
@@ -402,6 +463,8 @@ paths:
|
|||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/inline_response_200_14'
|
$ref: '#/components/schemas/inline_response_200_14'
|
||||||
|
security:
|
||||||
|
- Authenticate: []
|
||||||
/api/updateServer:
|
/api/updateServer:
|
||||||
post:
|
post:
|
||||||
tags:
|
tags:
|
||||||
@@ -421,6 +484,8 @@ paths:
|
|||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/inline_response_200_5'
|
$ref: '#/components/schemas/inline_response_200_5'
|
||||||
|
security:
|
||||||
|
- Authenticate: []
|
||||||
/api/isPinSet:
|
/api/isPinSet:
|
||||||
post:
|
post:
|
||||||
tags:
|
tags:
|
||||||
@@ -435,6 +500,8 @@ paths:
|
|||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/inline_response_200_15'
|
$ref: '#/components/schemas/inline_response_200_15'
|
||||||
|
security:
|
||||||
|
- Authenticate: []
|
||||||
/api/checkPin:
|
/api/checkPin:
|
||||||
post:
|
post:
|
||||||
tags:
|
tags:
|
||||||
@@ -454,6 +521,8 @@ paths:
|
|||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/inline_response_200_5'
|
$ref: '#/components/schemas/inline_response_200_5'
|
||||||
|
security:
|
||||||
|
- Authenticate: []
|
||||||
/api/setPin:
|
/api/setPin:
|
||||||
post:
|
post:
|
||||||
tags:
|
tags:
|
||||||
@@ -472,6 +541,8 @@ paths:
|
|||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/inline_response_200_5'
|
$ref: '#/components/schemas/inline_response_200_5'
|
||||||
|
security:
|
||||||
|
- Authenticate: []
|
||||||
/api/generateNewAPIKey:
|
/api/generateNewAPIKey:
|
||||||
post:
|
post:
|
||||||
tags:
|
tags:
|
||||||
@@ -486,6 +557,8 @@ paths:
|
|||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/inline_response_200_16'
|
$ref: '#/components/schemas/inline_response_200_16'
|
||||||
|
security:
|
||||||
|
- Authenticate: []
|
||||||
/api/deleteMp3:
|
/api/deleteMp3:
|
||||||
post:
|
post:
|
||||||
tags:
|
tags:
|
||||||
@@ -506,6 +579,8 @@ paths:
|
|||||||
schema:
|
schema:
|
||||||
type: boolean
|
type: boolean
|
||||||
description: Whether the operation succeeded
|
description: Whether the operation succeeded
|
||||||
|
security:
|
||||||
|
- Authenticate: []
|
||||||
/api/config:
|
/api/config:
|
||||||
get:
|
get:
|
||||||
tags: []
|
tags: []
|
||||||
@@ -519,6 +594,8 @@ paths:
|
|||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/inline_response_200_17'
|
$ref: '#/components/schemas/inline_response_200_17'
|
||||||
|
security:
|
||||||
|
- Authenticate: []
|
||||||
/api/setConfig:
|
/api/setConfig:
|
||||||
post:
|
post:
|
||||||
summary: Set config
|
summary: Set config
|
||||||
@@ -536,6 +613,8 @@ paths:
|
|||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/inline_response_200_5'
|
$ref: '#/components/schemas/inline_response_200_5'
|
||||||
|
security:
|
||||||
|
- Authenticate: []
|
||||||
components:
|
components:
|
||||||
schemas:
|
schemas:
|
||||||
body:
|
body:
|
||||||
@@ -1205,4 +1284,9 @@ components:
|
|||||||
type: string
|
type: string
|
||||||
type:
|
type:
|
||||||
type: string
|
type: string
|
||||||
securitySchemes: {}
|
securitySchemes:
|
||||||
|
Authenticate:
|
||||||
|
name: Authorization
|
||||||
|
type: apiKey
|
||||||
|
in: header
|
||||||
|
description: Use your public API key generated from the settings menu
|
||||||
|
|||||||
Reference in New Issue
Block a user