-
Notifications
You must be signed in to change notification settings - Fork 5
/
openapi.yaml
89 lines (89 loc) · 1.88 KB
/
openapi.yaml
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
openapi: 3.0.0
info:
title: XKCD
description: Webcomic of romance, sarcasm, math, and language.
version: 1.0.0
x-apisguru-categories:
- media
x-logo:
url: http://imgs.xkcd.com/static/terrible_small_logo.png
x-origin:
- version: '3.0'
format: openapi
url: >-
https://raw.githubusercontent.com/APIs-guru/unofficial_openapi_specs/master/xkcd.com/1.0.0/openapi.yaml
x-providerName: xkcd.com
x-tags:
- humor
- comics
x-unofficialSpec: true
x-api-status-urls:
- https://xkcd.com
servers:
- url: http://xkcd.com
tags:
- name: Info
paths:
/info.0.json:
get:
tags:
- Info
operationId: Info_getComicMetadata
description: |
Fetch current comic and metadata.
responses:
'200':
description: OK
content:
'*/*':
schema:
$ref: '#/components/schemas/comic'
/{comicId}/info.0.json:
get:
tags:
- Info
operationId: Info_getById
description: |
Fetch comics and metadata by comic id.
parameters:
- in: path
name: comicId
required: true
schema:
type: number
responses:
'200':
description: OK
content:
'*/*':
schema:
$ref: '#/components/schemas/comic'
components:
schemas:
comic:
properties:
title:
type: string
alt:
type: string
day:
type: string
img:
type: string
link:
type: string
month:
type: string
news:
type: string
num:
type: number
safe_title:
type: string
transcript:
type: string
year:
type: string
type: object
externalDocs:
url: https://xkcd.com/json.html