-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpokestore-spec.yaml
184 lines (184 loc) · 4.54 KB
/
pokestore-spec.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
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
openapi: 3.0.0
info:
title: Pokestore
version: 1.0.0
servers:
- url: http://{{url}}
tags:
- name: /admin/
description: /admin/ contains all routes to manage the API.
- name: /auth/
description: /auth/ contains all routes to manage the account.
- name: /cards/
description: /cards/ contains all routes to get cards with different filters.
- name: /pokemons/
description: /pokemons/ contains all routes to get pokemons.
- name: /
description: / contains all routes to get specific pokemons attributes.
paths:
/admin/card:
get:
tags:
- /admin/
summary: /card
description: >-
/admin/card contains the admin card manager to add / remove or edit a
card.
responses:
'200':
description: Successful response
content:
application/json: {}
/admin/load:
get:
tags:
- /admin/
summary: /load
description: >-
/admin/load contains the admin API loader, to load every files in the
database.
responses:
'200':
description: Successful response
content:
application/json: {}
/admin/pokemon:
get:
tags:
- /admin/
summary: /pokemon
description: >-
/admin/pokemon contains the admin pokemon manager to add / remove or
edit a pokemon.
responses:
'200':
description: Successful response
content:
application/json: {}
/admin/set:
get:
tags:
- /admin/
summary: /set
description: /admin/set contains the admin set manager to add / remove or edit a set.
responses:
'200':
description: Successful response
content:
application/json: {}
/auth/login:
get:
tags:
- /auth/
summary: /login
description: /auth/login contains the auth manager to login.
responses:
'200':
description: Successful response
content:
application/json: {}
/auth/logout:
get:
tags:
- /auth/
summary: /logout
description: /auth/logout contains the auth manager to logout.
responses:
'200':
description: Successful response
content:
application/json: {}
/auth/signup:
get:
tags:
- /auth/
summary: /signup
description: /auth/signup ontains the auth manager to signup.
responses:
'200':
description: Successful response
content:
application/json: {}
/cards:
get:
tags:
- /cards/
summary: '?set'
description: /cards?set={set} contains every cards that have the set {set}.
parameters:
- name: set
in: query
schema:
type: string
example: base
responses:
'200':
description: Successful response
content:
application/json: {}
/cards/1696760100175103:
get:
tags:
- /cards/
summary: /[id]
description: /cards/\[id\] contains the card with the id \[id\].
responses:
'200':
description: Successful response
content:
application/json: {}
/pokemons:
get:
tags:
- /pokemons/
summary: /
description: /pokemons/ contains every pokemons, with no filter.
responses:
'200':
description: Successful response
content:
application/json: {}
/pokemons/1696760192781708:
get:
tags:
- /pokemons/
summary: /[id]
description: /pokemons/\[id\] contains the pokemon with the id \[id\].
responses:
'200':
description: Successful response
content:
application/json: {}
/types:
get:
tags:
- /
summary: /types
description: /types contains all the different cards types.
responses:
'200':
description: Successful response
content:
application/json: {}
/rarity:
get:
tags:
- /
summary: /rarity
description: /rarity contains all the different cards rarities.
responses:
'200':
description: Successful response
content:
application/json: {}
/sets:
get:
tags:
- /
summary: /sets
description: /sets contains all the different cards sets.
responses:
'200':
description: Successful response
content:
application/json: {}