-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
openapi_cdn.yml
94 lines (86 loc) · 2.42 KB
/
openapi_cdn.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
openapi: 3.0.3
info:
title: pomu.app CDN API
version: 0.0.1-DEPRECATED
description: (Deprecated) Public CDN API for pomu.app
contact:
name: General inqueries regarding API
email: [email protected]
url: https://pomu.app
license:
name: BSD 3-Clause
url: https://github.com/mellowagain/pomu/blob/main/LICENSE.txt
servers:
- url: https://cdn.pomu.app/file/pomu
description: Production CDN
- url: https://dev-cdn.pomu.app/file/pomu-dev
description: Development CDN
x-topics:
- title: Deprecation Notice
content: |
The direct CDN API has been deprecated in favour of the download routes on the main API.
Please see the [main API documentation](https://docs.pomu.app) for download routes.
components:
parameters:
videoID:
name: videoID
in: path
description: YouTube Video ID
required: true
schema:
type: string
paths:
/{videoID}.jpg:
get:
operationId: thumbnail
description: |
Returns maximum resolution thumbnail for archive.
> error
> This endpoint is deprecated: consider using `GET /api/download/{videoId}/thumbnail`.
deprecated: true
parameters:
- $ref: "#/components/parameters/videoID"
responses:
"200":
description: OK
content:
binary/octet-stream:
schema:
type: string
format: binary
/{videoID}.log:
get:
operationId: log
description: |
Returns ffmpeg log for archive.
> error
> This endpoint is deprecated: consider using `GET /api/download/{videoId}/ffmpeg`.
deprecated: true
parameters:
- $ref: "#/components/parameters/videoID"
responses:
"200":
description: OK
content:
binary/octet-stream:
schema:
type: string
format: binary
/{videoID}.mp4:
get:
operationId: video
description: |
Returns video file for archive.
> error
> This endpoint is deprecated: consider using `GET /api/download/{videoId}/video`.
deprecated: true
parameters:
- $ref: "#/components/parameters/videoID"
responses:
"200":
description: OK
content:
binary/octet-stream:
schema:
type: string
format: binary