-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopenapi.yml
290 lines (280 loc) · 7.03 KB
/
openapi.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
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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
openapi: 3.0.3
info:
description: OpenAPI specification for the ComicVine API
version: "1.0"
title: ComicVine API
externalDocs:
description: Official Documentation
url: "https://comicvine.gamespot.com/api/documentation"
servers:
- url: "https://comicvine.gamespot.com/api"
description: Official Production server
tags:
- name: character
description: Endpoints for a character
- name: issue
description: Endpoints for a comic issue
- name: person
description: Endpoints for a person
- name: search
description: Endpoints for the API search
- name: volume
description: Endpoints for a comic volume
paths:
/character/{id}:
get:
summary: Get a particular character
operationId: get_character
tags:
- character
parameters:
- $ref: "#/components/parameters/id"
- $ref: "#/components/parameters/format"
- $ref: "#/components/parameters/field_list"
responses:
"200":
description: Information about the character
content:
application/json:
schema:
$ref: "./schemas/Response/EntityResponse.yml"
# TODO example
# example:
# $ref: "./examples/issue.yml"
application/xml:
schema:
$ref: "./schemas/Response/EntityResponse.yml"
# TODO example
# example:
# $ref: "./examples/character.yml"
# TODO
# /characters:
# TODO
# /chat:
# TODO
# /chats:
# TODO
# /concept:
# TODO
# /concepts:
# TODO
# /episode:
# TODO
# /episodes:
/issue/{id}:
get:
summary: Get a particular issue
operationId: get_issue
tags:
- issue
parameters:
- $ref: "#/components/parameters/id"
- $ref: "#/components/parameters/format"
- $ref: "#/components/parameters/field_list"
responses:
"200":
description: Information about the issue
content:
application/json:
schema:
$ref: "./schemas/Response/EntityResponse.yml"
example:
$ref: "./examples/responses/issue.yml"
application/xml:
schema:
$ref: "./schemas/Response/EntityResponse.yml"
example:
$ref: "./examples/responses/issue.yml"
# TODO
# /issues:
# TODO
# /location:
# TODO
# /locations:
# TODO
# /movie:
# TODO
# /movies:
# TODO
# /object:
# TODO
# /objects:
# TODO
# /origin:
# TODO
# /origins:
# TODO
/person/{id}:
get:
summary: Get a particular person
operationId: get_person
tags:
- person
parameters:
- $ref: "#/components/parameters/id"
- $ref: "#/components/parameters/format"
- $ref: "#/components/parameters/field_list"
responses:
"200":
description: Information about the person
content:
application/json:
schema:
$ref: "./schemas/Response/EntityResponse.yml"
example:
$ref: "./examples/responses/person.yml"
application/xml:
schema:
$ref: "./schemas/Response/EntityResponse.yml"
example:
$ref: "./examples/responses/person.yml"
# TODO
# /people:
# TODO
# /power:
# TODO
# /powers:
# TODO
# /promo:
# TODO
# /promos:
# TODO
# /publisher:
# TODO
# /publishers:
# TODO
# /series:
# TODO
# /series_list:
# TODO
/search:
get:
summary: Search to ComicVine database
operationId: search
tags:
- search
parameters:
- $ref: "#/components/parameters/format"
- $ref: "#/components/parameters/query"
- $ref: "#/components/parameters/field_list"
- $ref: "#/components/parameters/limit"
- $ref: "#/components/parameters/offset"
- $ref: "#/components/parameters/resources"
responses:
"200":
description: Search Results
content:
application/json:
schema:
$ref: "./schemas/Response/EntitiesResponse.yml"
example:
$ref: "./examples/responses/search.yml"
application/xml:
schema:
$ref: "./schemas/Response/EntitiesResponse.yml"
example:
$ref: "./examples/responses/search.yml"
# TODO
# /story_arc:
# TODO
# /story_arcs:
# TODO
# /team:
# TODO
# /teams:
# TODO
# /types:
# TODO
# /video:
# TODO
# /videos:
# TODO
# /video_type:
# TODO
# /video_types:
# TODO
# /video_category:
# TODO
# /video_categories:
# TODO
/volume/{id}:
get:
summary: Get a particular volume
operationId: get_volume
tags:
- volume
parameters:
- $ref: "#/components/parameters/id"
- $ref: "#/components/parameters/format"
- $ref: "#/components/parameters/field_list"
responses:
"200":
description: Information about the volume
content:
application/json:
schema:
$ref: "./schemas/Response/EntityResponse.yml"
example:
$ref: "./examples/responses/volume.yml"
application/xml:
schema:
$ref: "./schemas/Response/EntityResponse.yml"
example:
$ref: "./examples/responses/volume.yml"
# TODO
# /volumes
components:
parameters:
field_list:
$ref: "./parameters/field_list.yml"
filter:
$ref: "./parameters/filter.yml"
format:
$ref: "./parameters/format.yml"
id:
$ref: "./parameters/id.yml"
limit:
$ref: "./parameters/limit.yml"
offset:
$ref: "./parameters/offset.yml"
query:
$ref: "./parameters/query.yml"
resources:
$ref: "./parameters/resources.yml"
sort:
$ref: "./parameters/sort.yml"
schemas:
Character:
$ref: "./schemas/Character.yml"
Characters:
$ref: "./schemas/Characters.yml"
Issue:
$ref: "./schemas/Issue.yml"
Issues:
$ref: "./schemas/Issues.yml"
People:
$ref: "./schemas/People.yml"
Person:
$ref: "./schemas/Person.yml"
Volume:
$ref: "./schemas/Volume.yml"
Volumes:
$ref: "./schemas/Volumes.yml"
# Authentication Mechanisms
securitySchemes:
# Define API Key Authentication
api_key:
name: api_key
type: apiKey
in: query
description: |
# API Key
Your ComicVine API key, required for access to any of the API's resources.
You can get your own API Key on the [ComicVine API info page](https://comicvine.gamespot.com/api/).
## Format
It is 40 characters long with containing only lowercase characters along with numbers.
__example:__ `4ddon0bxepyyb19iz6m54mtucqm83bsj6fn9othx`
__regex pattern:__ `^[a-z0-9]*$`
# Use API Key Authentication globally
security:
- api_key: []