aboutsummaryrefslogtreecommitdiff
path: root/docs/swagger.json
diff options
context:
space:
mode:
Diffstat (limited to 'docs/swagger.json')
-rw-r--r--docs/swagger.json67
1 files changed, 39 insertions, 28 deletions
diff --git a/docs/swagger.json b/docs/swagger.json
index 653d52f..442745f 100644
--- a/docs/swagger.json
+++ b/docs/swagger.json
@@ -19,13 +19,13 @@
19 "application/json" 19 "application/json"
20 ], 20 ],
21 "tags": [ 21 "tags": [
22 "chapters" 22 "games \u0026 chapters"
23 ], 23 ],
24 "summary": "Get chapters from the specified game id.", 24 "summary": "Get maps from the specified chapter id.",
25 "parameters": [ 25 "parameters": [
26 { 26 {
27 "type": "integer", 27 "type": "integer",
28 "description": "Game ID", 28 "description": "Chapter ID",
29 "name": "id", 29 "name": "id",
30 "in": "path", 30 "in": "path",
31 "required": true 31 "required": true
@@ -43,7 +43,7 @@
43 "type": "object", 43 "type": "object",
44 "properties": { 44 "properties": {
45 "data": { 45 "data": {
46 "$ref": "#/definitions/models.ChaptersResponse" 46 "$ref": "#/definitions/models.ChapterMapsResponse"
47 } 47 }
48 } 48 }
49 } 49 }
@@ -139,7 +139,7 @@
139 "application/json" 139 "application/json"
140 ], 140 ],
141 "tags": [ 141 "tags": [
142 "games" 142 "games \u0026 chapters"
143 ], 143 ],
144 "summary": "Get games from the leaderboards.", 144 "summary": "Get games from the leaderboards.",
145 "responses": { 145 "responses": {
@@ -173,18 +173,24 @@
173 } 173 }
174 } 174 }
175 }, 175 },
176 "/login": { 176 "/games/{id}": {
177 "get": { 177 "get": {
178 "consumes": [
179 "application/json"
180 ],
181 "produces": [ 178 "produces": [
182 "application/json" 179 "application/json"
183 ], 180 ],
184 "tags": [ 181 "tags": [
185 "login" 182 "games \u0026 chapters"
183 ],
184 "summary": "Get chapters from the specified game id.",
185 "parameters": [
186 {
187 "type": "integer",
188 "description": "Game ID",
189 "name": "id",
190 "in": "path",
191 "required": true
192 }
186 ], 193 ],
187 "summary": "Get (redirect) login page for Steam auth.",
188 "responses": { 194 "responses": {
189 "200": { 195 "200": {
190 "description": "OK", 196 "description": "OK",
@@ -197,7 +203,7 @@
197 "type": "object", 203 "type": "object",
198 "properties": { 204 "properties": {
199 "data": { 205 "data": {
200 "$ref": "#/definitions/models.LoginResponse" 206 "$ref": "#/definitions/models.ChaptersResponse"
201 } 207 }
202 } 208 }
203 } 209 }
@@ -213,24 +219,18 @@
213 } 219 }
214 } 220 }
215 }, 221 },
216 "/maps/{id}": { 222 "/login": {
217 "get": { 223 "get": {
224 "consumes": [
225 "application/json"
226 ],
218 "produces": [ 227 "produces": [
219 "application/json" 228 "application/json"
220 ], 229 ],
221 "tags": [ 230 "tags": [
222 "maps" 231 "login"
223 ],
224 "summary": "Get maps from the specified chapter id.",
225 "parameters": [
226 {
227 "type": "integer",
228 "description": "Chapter ID",
229 "name": "id",
230 "in": "path",
231 "required": true
232 }
233 ], 232 ],
233 "summary": "Get (redirect) login page for Steam auth.",
234 "responses": { 234 "responses": {
235 "200": { 235 "200": {
236 "description": "OK", 236 "description": "OK",
@@ -243,10 +243,7 @@
243 "type": "object", 243 "type": "object",
244 "properties": { 244 "properties": {
245 "data": { 245 "data": {
246 "type": "array", 246 "$ref": "#/definitions/models.LoginResponse"
247 "items": {
248 "$ref": "#/definitions/models.MapShort"
249 }
250 } 247 }
251 } 248 }
252 } 249 }
@@ -744,6 +741,20 @@
744 } 741 }
745 } 742 }
746 }, 743 },
744 "models.ChapterMapsResponse": {
745 "type": "object",
746 "properties": {
747 "chapter": {
748 "$ref": "#/definitions/models.Chapter"
749 },
750 "maps": {
751 "type": "array",
752 "items": {
753 "$ref": "#/definitions/models.MapShort"
754 }
755 }
756 }
757 },
747 "models.ChaptersResponse": { 758 "models.ChaptersResponse": {
748 "type": "object", 759 "type": "object",
749 "properties": { 760 "properties": {