-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathswagger.yaml
More file actions
184 lines (184 loc) · 3.85 KB
/
swagger.yaml
File metadata and controls
184 lines (184 loc) · 3.85 KB
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
swagger: '2.0'
info:
description: |-
BE CAREFUL: This is not an API.
Our website hosts JSON files to load our HTML files content.
title: FansubDB API
version: '2.0'
contact:
email: fansubdb@mail-me.com
license:
name: CC BY-SA 4.0
url: 'https://creativecommons.org/licenses/by-sa/4.0/'
host: fansubdb.github.io
basePath: /
tags:
- name: data
description: Consult the data of our website
schemes:
- https
paths:
/data/lang.json:
get:
tags:
- data
summary: Have the different languages that our website hosts
produces:
- application/json
responses:
'200':
description: successful operation
schema:
type: array
items:
$ref: '#/definitions/Languages'
'404':
description: Not found
'/data/{lang}/list.json':
get:
tags:
- data
summary: Have the different seasons for a language that our website hosts
description: ''
produces:
- application/json
parameters:
- name: lang
in: path
description: the lang value
required: true
type: string
responses:
'200':
description: successful operation
schema:
$ref: '#/definitions/Language'
'404':
description: Not found
'/data/{lang}/{year}/{season}.json':
get:
tags:
- data
summary: >-
Have the season detail of subbing group for a language that our website
hosts
description: ''
produces:
- application/json
parameters:
- name: lang
in: path
description: the lang value
required: true
type: string
- name: year
in: path
description: the year value
required: true
type: string
- name: season
in: path
description: the season value
required: true
type: string
responses:
'200':
description: successful operation
schema:
$ref: '#/definitions/AnimeoftheSeason'
'404':
description: Not found
definitions:
Languages:
type: object
properties:
lang:
type: string
flag:
type: string
goto_lbl:
type: string
url:
type: string
Language:
type: object
properties:
data:
type: array
items:
$ref: '#/definitions/Year'
datafrom_msg:
type: string
erroryearorseason_msg:
type: string
Year:
type: object
properties:
year:
type: integer
format: int64
seasons:
type: array
items:
$ref: '#/definitions/Season'
Season:
type: object
properties:
season:
type: string
title:
type: string
url:
type: string
AnimeoftheSeason:
type: object
properties:
name_lbl:
type: string
group_lbl:
type: string
message_empty_list:
type: string
tv_lbl:
type: string
ova_lbl:
type: string
movie_lbl:
type: string
tv:
type: array
items:
$ref: '#/definitions/Anime'
ova:
type: array
items:
$ref: '#/definitions/Anime'
movie:
type: array
items:
$ref: '#/definitions/Anime'
Anime:
type: object
properties:
name:
type: string
image:
type: string
groups:
type: array
items:
$ref: '#/definitions/Release'
Release:
type: object
properties:
status:
type: string
detail:
type: array
items:
$ref: '#/definitions/Group'
Group:
type: object
properties:
name:
type: string