-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmonsters.yaml
159 lines (156 loc) · 4.62 KB
/
monsters.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
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
openapi: 3.0.3
info:
title: Pixel Encounter - OpenAPI 3.0
description: >-
Simply a web application and an API which generates randomly generated pixel monsters in SVG format.
It can be used to create profile pictures. If you are on the home page, then go to the API page for documentation.
Feel free to use the API to integrate it in your application to create avatars or something else.
version: 1.0.0
servers:
- url: https://app.pixelencounter.com/api/basic
paths:
/monsters/random:
get:
summary: Get a random SVG monster.
description: Get a random SVG monster.
operationId: getRandomMonster
responses:
'200':
description: Successful operation
tags:
- Monsters
/monsters/random/json:
get:
summary: Get a random SVG monster as json output.
description: Get a random SVG monster as json output.
operationId: getRandomJsonMonster
responses:
'200':
description: Successful operation
tags:
- Monsters
/monsters/random/{format}:
get:
summary: Get a random SVG monster as image.
description: Get an array of all emojis from a certain category.
operationId: getRandomMonsterImg
responses:
'200':
description: Successful operation
tags:
- Monsters
parameters:
- name: format
in: path
description: The value can be png, jpeg or webp.
required: true
explode: false
schema:
type: string
- name: size
in: query
description: The size in pixels, default is '100'.
required: true
explode: false
schema:
type: integer
/monsters/{id}:
get:
summary: Get a SVG monster by ID.
description: Get a SVG monster by ID.
operationId: getMonsterById
responses:
'200':
description: Successful operation
tags:
- Monsters
parameters:
- name: id
in: path
description: The seed id, must be greater than '0' and lower than or equal to '2147483647'.
required: true
explode: false
schema:
type: integer
/monsters/{id}/json:
get:
summary: Get a SVG monster by ID as json output.
description: Get a SVG monster by ID as json output.
operationId: getJsonMonsterById
responses:
'200':
description: Successful operation
tags:
- Monsters
parameters:
- name: id
in: path
description: The seed id, must be greater than '0' and lower than or equal to '2147483647'.
required: true
explode: false
schema:
type: integer
/monsters:
get:
summary: Get a paged list with SVG monsters.
description: Get a paged list with SVG monsters.
operationId: getMonsters
responses:
'200':
description: Successful operation
tags:
- Monsters
parameters:
- name: page
in: query
description: Page number, must be greater than 0 and lower than '44739242'.
required: false
explode: false
schema:
type: integer
- name: startRange
in: query
description: Must be greater than '0' and lower than endRange.
required: false
explode: false
schema:
type: integer
- name: endRange
in: query
description: Must be greater than startRange and lower than or equal to '2147483647'.
required: false
explode: false
schema:
type: integer
/monsters/{id}/{format}:
get:
summary: Get a SVG monster by ID as Image.
description: Get a SVG monster by ID as Image.
operationId: getMonsterImgById
responses:
'200':
description: Successful operation
tags:
- Monsters
parameters:
- name: id
in: path
description: The seed id, must be greater than '0' and lower than or equal to '2147483647'.
required: true
explode: false
schema:
type: integer
- name: format
in: path
description: The value can be png, jpeg or webp.
required: true
explode: false
schema:
type: string
- name: size
in: query
description: The size in pixels, default is '100'.
required: true
explode: false
schema:
type: integer