Skip to content

Commit 418e855

Browse files
committed
update rss and datetime param
1 parent 4adc07a commit 418e855

File tree

4 files changed

+411
-15
lines changed

4 files changed

+411
-15
lines changed

swagger/swagger-convert.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const options = {
77
openapi: '3.0.0',
88
info: {
99
title: 'TorAPI',
10-
version: '0.5.1',
10+
version: '0.5.2',
1111
description: 'Unofficial API (backend) for RuTracker, Kinozal, RuTor and NoNameClub',
1212
contact: {
1313
name: "© Lifailon (Alex Kup)",

swagger/swagger.js

Lines changed: 127 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,80 @@
284284
* get:
285285
* tags: [RSS]
286286
* description: Get native RSS news feed from Kinozal provider in XML or JSON format. To get the answer in the required format, use the parameter in the answer block.
287+
* parameters:
288+
* - name: category
289+
* in: query
290+
* required: false
291+
* description: Parameter to filter by category
292+
* schema:
293+
* type: integer
294+
* enum:
295+
* - 0
296+
* - 1
297+
* - 2
298+
* - 3
299+
* - 4
300+
* - 5
301+
* - 6
302+
* - 7
303+
* - 8
304+
* - 9
305+
* - 10
306+
* - 11
307+
* - 12
308+
* - 13
309+
* - 14
310+
* - 15
311+
* - 16
312+
* - 17
313+
* - 18
314+
* - 20
315+
* - 21
316+
* - 22
317+
* - 23
318+
* - 24
319+
* - 32
320+
* - 35
321+
* - 37
322+
* - 38
323+
* - 39
324+
* - 40
325+
* - 41
326+
* - 42
327+
* - 45
328+
* - 46
329+
* - 47
330+
* - 48
331+
* - 49
332+
* - 50
333+
* - 1001
334+
* - 1002
335+
* - 1003
336+
* - 1004
337+
* - 1006
338+
* default: 0
339+
* minimum: 0
340+
* - name: year
341+
* in: query
342+
* required: false
343+
* description: Release year for filtering
344+
* schema:
345+
* type: integer
346+
* default: 0
347+
* minimum: 0
348+
* - name: format
349+
* in: query
350+
* required: false
351+
* description: Quality resolution format for filtering
352+
* schema:
353+
* type: integer
354+
* enum:
355+
* - 0
356+
* - 720
357+
* - 1080
358+
* - 2160
359+
* default: 0
360+
* minimum: 0
287361
* responses:
288362
* 200:
289363
* description: Successful response
@@ -302,15 +376,23 @@
302376
* items:
303377
* type: object
304378
* properties:
379+
* date:
380+
* type: string
305381
* title:
306382
* type: string
383+
* category:
384+
* type: string
307385
* link:
308386
* type: string
309-
* category:
387+
* downloadLink:
310388
* type: string
311-
* guid:
389+
* size:
312390
* type: string
313-
* pubDate:
391+
* comments:
392+
* type: string
393+
* seeds:
394+
* type: string
395+
* peers:
314396
* type: string
315397
* 400:
316398
* description: No data
@@ -320,6 +402,34 @@
320402
* get:
321403
* tags: [RSS]
322404
* description: Get custom RSS news feed from RuTor provider in XML or JSON format. To get the answer in the required format, use the parameter in the answer block.
405+
* parameters:
406+
* - name: category
407+
* in: query
408+
* required: false
409+
* description: Parameter to filter by category
410+
* schema:
411+
* type: integer
412+
* enum:
413+
* - 0
414+
* - 1
415+
* - 2
416+
* - 3
417+
* - 4
418+
* - 5
419+
* - 6
420+
* - 7
421+
* - 8
422+
* - 9
423+
* - 10
424+
* - 11
425+
* - 12
426+
* - 13
427+
* - 14
428+
* - 15
429+
* - 16
430+
* - 17
431+
* default: 0
432+
* minimum: 0
323433
* responses:
324434
* 200:
325435
* description: Successful response
@@ -364,6 +474,15 @@
364474
* get:
365475
* tags: [RSS]
366476
* description: Get native RSS news feed from NoNameClub provider in XML or JSON format. To get the answer in the required format, use the parameter in the answer block.
477+
* parameters:
478+
* - name: category
479+
* in: query
480+
* required: false
481+
* description: Parameter to filter by category
482+
* schema:
483+
* type: integer
484+
* example: 0
485+
* default: 0
367486
* responses:
368487
* 200:
369488
* description: Successful response
@@ -631,6 +750,8 @@
631750
* type: string
632751
* Peers:
633752
* type: string
753+
* Time:
754+
* type: string
634755
* Date:
635756
* type: string
636757
* 400:
@@ -644,7 +765,7 @@
644765
* parameters:
645766
* - name: query
646767
* in: query
647-
* required: true
768+
* required: false
648769
* description: Query parameter
649770
* schema:
650771
* type: string
@@ -800,6 +921,8 @@
800921
* type: string
801922
* Peers:
802923
* type: string
924+
* Time:
925+
* type: string
803926
* Date:
804927
* type: string
805928
* 400:

0 commit comments

Comments
 (0)