@@ -3,6 +3,9 @@ openapi: 3.1.0
3
3
info :
4
4
version : 2.1.0
5
5
title : API Docs - arm-server
6
+ license :
7
+ name : GNU Affero General Public License v3.0 only
8
+ identifier : AGPL-3.0-only
6
9
contact :
7
10
name : BeeeQueue
8
11
url : https://github.com/BeeeQueue/arm-server
@@ -24,11 +27,11 @@ tags:
24
27
description : |
25
28
`v2` adds more Sources thanks to [Fribb/anime-lists](https://github.com/Fribb/anime-lists).
26
29
27
- Unfortunately TheTVDB uses one entry per **show** instead of **season** meaning its IDs become one-to-many mappings.
28
-
29
- This meant it cannot be queried for in `/api/v2/ids` since it's impossible for the API to look the same in that case.
30
-
31
- Instead I added `/api/v2/thetvdb` if you _really_ want to query by their IDs.
30
+ Unfortunately IMDB, TheMovieDB, and TheTVDB use one entry per **show** instead of **season** meaning their IDs become one-to-many mappings.
31
+
32
+ This means it cannot be queried for in `/api/v2/ids` since it's impossible for the API to look the same in that case.
33
+
34
+ Instead I added `/api/v2/imdb`, `/api/v2/themoviedb`, and `/api/v2/ thetvdb` if you want to query by their IDs.
32
35
- name : v1
33
36
34
37
$defs :
57
60
example : Bad request
58
61
message :
59
62
type : string
60
- example : body/1/anilist must be >= 0
63
+ example : " 1: Number must be greater than or equal to 1, Number must be greater than 0 "
61
64
62
65
relation :
63
66
type : object
@@ -211,7 +214,7 @@ paths:
211
214
get :
212
215
operationId : getIds
213
216
summary : Fetch IDs via query parameters
214
-
217
+ security : [{}]
215
218
tags :
216
219
- v1
217
220
@@ -254,6 +257,7 @@ paths:
254
257
If using array queries, the resulting array will map to the corresponding input!
255
258
256
259
e.g. `body[1]` will be the result of `query[1]`.
260
+ security : [{}]
257
261
tags :
258
262
- v1
259
263
@@ -286,6 +290,7 @@ paths:
286
290
operationId : v2-getIds
287
291
summary : Fetch IDs via query parameters
288
292
description : ' '
293
+ security : [{}]
289
294
tags :
290
295
- v2
291
296
@@ -301,10 +306,8 @@ paths:
301
306
- anidb
302
307
- anime-planet
303
308
- anisearch
304
- - imdb
305
309
- kitsu
306
310
- livechart
307
- - themoviedb
308
311
- notify-moe
309
312
- myanimelist
310
313
- name : id
@@ -338,6 +341,7 @@ paths:
338
341
If using array queries, the resulting array will map to the corresponding input!
339
342
340
343
e.g. `body[1]` will be the result of `query[1]`.
344
+ security : [{}]
341
345
tags :
342
346
- v2
343
347
@@ -382,13 +386,6 @@ paths:
382
386
- type : integer
383
387
minimum : 0
384
388
maximum : 50000000
385
- imdb :
386
- oneOf :
387
- - type : ' null'
388
- - type : string
389
- pattern : tt\d+
390
- minLength : 1
391
- maxLength : 50
392
389
kitsu :
393
390
oneOf :
394
391
- type : ' null'
@@ -407,12 +404,6 @@ paths:
407
404
- type : string
408
405
minLength : 1
409
406
maxLength : 50
410
- themoviedb :
411
- oneOf :
412
- - type : ' null'
413
- - type : integer
414
- minimum : 0
415
- maximum : 50000000
416
407
myanimelist :
417
408
oneOf :
418
409
- type : ' null'
@@ -451,13 +442,6 @@ paths:
451
442
- type : integer
452
443
minimum : 0
453
444
maximum : 50000000
454
- imdb :
455
- oneOf :
456
- - type : ' null'
457
- - type : string
458
- pattern : tt\d+
459
- minLength : 1
460
- maxLength : 50
461
445
kitsu :
462
446
oneOf :
463
447
- type : ' null'
@@ -476,12 +460,6 @@ paths:
476
460
- type : string
477
461
minLength : 1
478
462
maxLength : 50
479
- themoviedb :
480
- oneOf :
481
- - type : ' null'
482
- - type : integer
483
- minimum : 0
484
- maximum : 50000000
485
463
myanimelist :
486
464
oneOf :
487
465
- type : ' null'
@@ -499,11 +477,74 @@ paths:
499
477
' 400 ' :
500
478
$ref : ' #/$defs/400'
501
479
480
+ /api/v2/imdb :
481
+ get :
482
+ operationId : v2-imdb
483
+ summary : Fetch IDs by IMDB ID
484
+ description : ' '
485
+ security : [{}]
486
+ tags :
487
+ - v2
488
+
489
+ parameters :
490
+ - name : id
491
+ in : query
492
+ required : true
493
+ example : tt5370118
494
+ schema :
495
+ type : integer
496
+ minimum : 1
497
+ - $ref : " #/$defs/include_param"
498
+
499
+ responses :
500
+ ' 200 ' :
501
+ description : OK
502
+ content :
503
+ application/json :
504
+ schema :
505
+ type : array
506
+ items :
507
+ $ref : ' #/$defs/nullable_relation'
508
+ ' 400 ' :
509
+ $ref : ' #/$defs/400'
510
+
511
+ /api/v2/themoviedb :
512
+ get :
513
+ operationId : v2-themoviedb
514
+ summary : Fetch IDs by TheMovieDB ID
515
+ description : ' '
516
+ security : [{}]
517
+ tags :
518
+ - v2
519
+
520
+ parameters :
521
+ - name : id
522
+ in : query
523
+ required : true
524
+ example : 1337
525
+ schema :
526
+ type : integer
527
+ minimum : 1
528
+ - $ref : " #/$defs/include_param"
529
+
530
+ responses :
531
+ ' 200 ' :
532
+ description : OK
533
+ content :
534
+ application/json :
535
+ schema :
536
+ type : array
537
+ items :
538
+ $ref : ' #/$defs/nullable_relation'
539
+ ' 400 ' :
540
+ $ref : ' #/$defs/400'
541
+
502
542
/api/v2/thetvdb :
503
543
get :
504
544
operationId : v2-thetvdb
505
545
summary : Fetch IDs by TheTVDB ID
506
546
description : ' '
547
+ security : [{}]
507
548
tags :
508
549
- v2
509
550
0 commit comments