Update plugins/alldownloader.js
Browse files- plugins/alldownloader.js +25 -5
plugins/alldownloader.js
CHANGED
@@ -13,17 +13,37 @@ const AllDlRoutes = express.Router();
|
|
13 |
* - in: query
|
14 |
* name: url
|
15 |
* required: true
|
16 |
-
* description: The
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
* schema:
|
18 |
* type: string
|
19 |
* responses:
|
20 |
* 200:
|
21 |
* description: Success
|
22 |
-
*
|
23 |
-
*
|
24 |
* schema:
|
25 |
-
* type:
|
26 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
*/
|
28 |
AllDlRoutes.get('/api/v1/dl/tiktok', authenticateApiKey, apiLimiter, async (req, res) => {
|
29 |
try {
|
|
|
13 |
* - in: query
|
14 |
* name: url
|
15 |
* required: true
|
16 |
+
* description: The URL of the TikTok video to be processed
|
17 |
+
* schema:
|
18 |
+
* type: string
|
19 |
+
* - in: header
|
20 |
+
* name: x-api-key
|
21 |
+
* required: true
|
22 |
+
* description: API key for authentication
|
23 |
* schema:
|
24 |
* type: string
|
25 |
* responses:
|
26 |
* 200:
|
27 |
* description: Success
|
28 |
+
* content:
|
29 |
+
* application/json:
|
30 |
* schema:
|
31 |
+
* type: object
|
32 |
+
* properties:
|
33 |
+
* success:
|
34 |
+
* type: boolean
|
35 |
+
* data:
|
36 |
+
* type: object
|
37 |
+
* properties:
|
38 |
+
* data:
|
39 |
+
* type: string
|
40 |
+
* description: URL of the downloaded TikTok video
|
41 |
+
* 400:
|
42 |
+
* description: Bad Request (e.g., missing or invalid URL)
|
43 |
+
* 401:
|
44 |
+
* description: Unauthorized (e.g., missing or invalid API key)
|
45 |
+
* 500:
|
46 |
+
* description: Internal Server Error
|
47 |
*/
|
48 |
AllDlRoutes.get('/api/v1/dl/tiktok', authenticateApiKey, apiLimiter, async (req, res) => {
|
49 |
try {
|