aboutsummaryrefslogtreecommitdiff
path: root/docs/docs.go
diff options
context:
space:
mode:
Diffstat (limited to 'docs/docs.go')
-rw-r--r--docs/docs.go104
1 files changed, 103 insertions, 1 deletions
diff --git a/docs/docs.go b/docs/docs.go
index 57984f4..13d4cf6 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -229,6 +229,68 @@ const docTemplate = `{
229 } 229 }
230 } 230 }
231 }, 231 },
232 "/maps/{id}/image": {
233 "put": {
234 "description": "Edit map image with specified map id.",
235 "produces": [
236 "application/json"
237 ],
238 "tags": [
239 "maps"
240 ],
241 "parameters": [
242 {
243 "type": "string",
244 "description": "JWT Token",
245 "name": "Authorization",
246 "in": "header",
247 "required": true
248 },
249 {
250 "type": "integer",
251 "description": "Map ID",
252 "name": "id",
253 "in": "path",
254 "required": true
255 },
256 {
257 "description": "Body",
258 "name": "request",
259 "in": "body",
260 "required": true,
261 "schema": {
262 "$ref": "#/definitions/models.EditMapImageRequest"
263 }
264 }
265 ],
266 "responses": {
267 "200": {
268 "description": "OK",
269 "schema": {
270 "allOf": [
271 {
272 "$ref": "#/definitions/models.Response"
273 },
274 {
275 "type": "object",
276 "properties": {
277 "data": {
278 "$ref": "#/definitions/models.EditMapImageRequest"
279 }
280 }
281 }
282 ]
283 }
284 },
285 "400": {
286 "description": "Bad Request",
287 "schema": {
288 "$ref": "#/definitions/models.Response"
289 }
290 }
291 }
292 }
293 },
232 "/maps/{id}/leaderboards": { 294 "/maps/{id}/leaderboards": {
233 "get": { 295 "get": {
234 "description": "Get map leaderboards with specified id.", 296 "description": "Get map leaderboards with specified id.",
@@ -344,7 +406,19 @@ const docTemplate = `{
344 "200": { 406 "200": {
345 "description": "OK", 407 "description": "OK",
346 "schema": { 408 "schema": {
347 "$ref": "#/definitions/models.Response" 409 "allOf": [
410 {
411 "$ref": "#/definitions/models.Response"
412 },
413 {
414 "type": "object",
415 "properties": {
416 "data": {
417 "$ref": "#/definitions/models.RecordResponse"
418 }
419 }
420 }
421 ]
348 } 422 }
349 }, 423 },
350 "400": { 424 "400": {
@@ -1047,6 +1121,17 @@ const docTemplate = `{
1047 } 1121 }
1048 } 1122 }
1049 }, 1123 },
1124 "models.EditMapImageRequest": {
1125 "type": "object",
1126 "required": [
1127 "image"
1128 ],
1129 "properties": {
1130 "image": {
1131 "type": "string"
1132 }
1133 }
1134 },
1050 "models.EditMapSummaryRequest": { 1135 "models.EditMapSummaryRequest": {
1051 "type": "object", 1136 "type": "object",
1052 "required": [ 1137 "required": [
@@ -1084,6 +1169,9 @@ const docTemplate = `{
1084 "id": { 1169 "id": {
1085 "type": "integer" 1170 "type": "integer"
1086 }, 1171 },
1172 "is_coop": {
1173 "type": "boolean"
1174 },
1087 "name": { 1175 "name": {
1088 "type": "string" 1176 "type": "string"
1089 } 1177 }
@@ -1112,6 +1200,9 @@ const docTemplate = `{
1112 "image": { 1200 "image": {
1113 "type": "string" 1201 "type": "string"
1114 }, 1202 },
1203 "is_coop": {
1204 "type": "boolean"
1205 },
1115 "map_name": { 1206 "map_name": {
1116 "type": "string" 1207 "type": "string"
1117 } 1208 }
@@ -1242,6 +1333,17 @@ const docTemplate = `{
1242 } 1333 }
1243 } 1334 }
1244 }, 1335 },
1336 "models.RecordResponse": {
1337 "type": "object",
1338 "properties": {
1339 "score_count": {
1340 "type": "integer"
1341 },
1342 "score_time": {
1343 "type": "integer"
1344 }
1345 }
1346 },
1245 "models.Response": { 1347 "models.Response": {
1246 "type": "object", 1348 "type": "object",
1247 "properties": { 1349 "properties": {