aboutsummaryrefslogtreecommitdiff
path: root/docs/swagger.json
diff options
context:
space:
mode:
Diffstat (limited to 'docs/swagger.json')
-rw-r--r--docs/swagger.json549
1 files changed, 392 insertions, 157 deletions
diff --git a/docs/swagger.json b/docs/swagger.json
index 2e1a789..646da0f 100644
--- a/docs/swagger.json
+++ b/docs/swagger.json
@@ -43,7 +43,7 @@
43 "type": "object", 43 "type": "object",
44 "properties": { 44 "properties": {
45 "data": { 45 "data": {
46 "$ref": "#/definitions/models.ChapterMapsResponse" 46 "$ref": "#/definitions/handlers.ChapterMapsResponse"
47 } 47 }
48 } 48 }
49 } 49 }
@@ -166,7 +166,7 @@
166 "type": "object", 166 "type": "object",
167 "properties": { 167 "properties": {
168 "data": { 168 "data": {
169 "$ref": "#/definitions/models.ChaptersResponse" 169 "$ref": "#/definitions/handlers.ChaptersResponse"
170 } 170 }
171 } 171 }
172 } 172 }
@@ -206,7 +206,90 @@
206 "type": "object", 206 "type": "object",
207 "properties": { 207 "properties": {
208 "data": { 208 "data": {
209 "$ref": "#/definitions/models.LoginResponse" 209 "$ref": "#/definitions/handlers.LoginResponse"
210 }
211 }
212 }
213 ]
214 }
215 },
216 "400": {
217 "description": "Bad Request",
218 "schema": {
219 "$ref": "#/definitions/models.Response"
220 }
221 }
222 }
223 }
224 },
225 "/logs/mod": {
226 "get": {
227 "description": "Get mod logs.",
228 "produces": [
229 "application/json"
230 ],
231 "tags": [
232 "logs"
233 ],
234 "parameters": [
235 {
236 "type": "string",
237 "description": "JWT Token",
238 "name": "Authorization",
239 "in": "header",
240 "required": true
241 }
242 ],
243 "responses": {
244 "200": {
245 "description": "OK",
246 "schema": {
247 "allOf": [
248 {
249 "$ref": "#/definitions/models.Response"
250 },
251 {
252 "type": "object",
253 "properties": {
254 "data": {
255 "$ref": "#/definitions/handlers.LogsResponse"
256 }
257 }
258 }
259 ]
260 }
261 },
262 "400": {
263 "description": "Bad Request",
264 "schema": {
265 "$ref": "#/definitions/models.Response"
266 }
267 }
268 }
269 }
270 },
271 "/logs/score": {
272 "get": {
273 "description": "Get score logs of every player.",
274 "produces": [
275 "application/json"
276 ],
277 "tags": [
278 "logs"
279 ],
280 "responses": {
281 "200": {
282 "description": "OK",
283 "schema": {
284 "allOf": [
285 {
286 "$ref": "#/definitions/models.Response"
287 },
288 {
289 "type": "object",
290 "properties": {
291 "data": {
292 "$ref": "#/definitions/handlers.ScoreLogsResponse"
210 } 293 }
211 } 294 }
212 } 295 }
@@ -252,7 +335,7 @@
252 "in": "body", 335 "in": "body",
253 "required": true, 336 "required": true,
254 "schema": { 337 "schema": {
255 "$ref": "#/definitions/models.EditMapImageRequest" 338 "$ref": "#/definitions/handlers.EditMapImageRequest"
256 } 339 }
257 } 340 }
258 ], 341 ],
@@ -268,7 +351,7 @@
268 "type": "object", 351 "type": "object",
269 "properties": { 352 "properties": {
270 "data": { 353 "data": {
271 "$ref": "#/definitions/models.EditMapImageRequest" 354 "$ref": "#/definitions/handlers.EditMapImageRequest"
272 } 355 }
273 } 356 }
274 } 357 }
@@ -314,19 +397,7 @@
314 "type": "object", 397 "type": "object",
315 "properties": { 398 "properties": {
316 "data": { 399 "data": {
317 "allOf": [ 400 "$ref": "#/definitions/handlers.MapLeaderboardsResponse"
318 {
319 "$ref": "#/definitions/models.Map"
320 },
321 {
322 "type": "object",
323 "properties": {
324 "data": {
325 "$ref": "#/definitions/models.MapRecords"
326 }
327 }
328 }
329 ]
330 } 401 }
331 } 402 }
332 } 403 }
@@ -407,7 +478,7 @@
407 "type": "object", 478 "type": "object",
408 "properties": { 479 "properties": {
409 "data": { 480 "data": {
410 "$ref": "#/definitions/models.RecordResponse" 481 "$ref": "#/definitions/handlers.RecordResponse"
411 } 482 }
412 } 483 }
413 } 484 }
@@ -459,7 +530,7 @@
459 "type": "object", 530 "type": "object",
460 "properties": { 531 "properties": {
461 "data": { 532 "data": {
462 "$ref": "#/definitions/models.MapSummaryResponse" 533 "$ref": "#/definitions/handlers.MapSummaryResponse"
463 } 534 }
464 } 535 }
465 } 536 }
@@ -503,7 +574,7 @@
503 "in": "body", 574 "in": "body",
504 "required": true, 575 "required": true,
505 "schema": { 576 "schema": {
506 "$ref": "#/definitions/models.EditMapSummaryRequest" 577 "$ref": "#/definitions/handlers.EditMapSummaryRequest"
507 } 578 }
508 } 579 }
509 ], 580 ],
@@ -519,7 +590,7 @@
519 "type": "object", 590 "type": "object",
520 "properties": { 591 "properties": {
521 "data": { 592 "data": {
522 "$ref": "#/definitions/models.EditMapSummaryRequest" 593 "$ref": "#/definitions/handlers.EditMapSummaryRequest"
523 } 594 }
524 } 595 }
525 } 596 }
@@ -563,7 +634,7 @@
563 "in": "body", 634 "in": "body",
564 "required": true, 635 "required": true,
565 "schema": { 636 "schema": {
566 "$ref": "#/definitions/models.CreateMapSummaryRequest" 637 "$ref": "#/definitions/handlers.CreateMapSummaryRequest"
567 } 638 }
568 } 639 }
569 ], 640 ],
@@ -579,7 +650,7 @@
579 "type": "object", 650 "type": "object",
580 "properties": { 651 "properties": {
581 "data": { 652 "data": {
582 "$ref": "#/definitions/models.CreateMapSummaryRequest" 653 "$ref": "#/definitions/handlers.CreateMapSummaryRequest"
583 } 654 }
584 } 655 }
585 } 656 }
@@ -623,7 +694,7 @@
623 "in": "body", 694 "in": "body",
624 "required": true, 695 "required": true,
625 "schema": { 696 "schema": {
626 "$ref": "#/definitions/models.DeleteMapSummaryRequest" 697 "$ref": "#/definitions/handlers.DeleteMapSummaryRequest"
627 } 698 }
628 } 699 }
629 ], 700 ],
@@ -639,7 +710,7 @@
639 "type": "object", 710 "type": "object",
640 "properties": { 711 "properties": {
641 "data": { 712 "data": {
642 "$ref": "#/definitions/models.DeleteMapSummaryRequest" 713 "$ref": "#/definitions/handlers.DeleteMapSummaryRequest"
643 } 714 }
644 } 715 }
645 } 716 }
@@ -688,7 +759,7 @@
688 "type": "object", 759 "type": "object",
689 "properties": { 760 "properties": {
690 "data": { 761 "data": {
691 "$ref": "#/definitions/models.ProfileResponse" 762 "$ref": "#/definitions/handlers.ProfileResponse"
692 } 763 }
693 } 764 }
694 } 765 }
@@ -789,7 +860,7 @@
789 "type": "object", 860 "type": "object",
790 "properties": { 861 "properties": {
791 "data": { 862 "data": {
792 "$ref": "#/definitions/models.ProfileResponse" 863 "$ref": "#/definitions/handlers.ProfileResponse"
793 } 864 }
794 } 865 }
795 } 866 }
@@ -832,7 +903,7 @@
832 "type": "object", 903 "type": "object",
833 "properties": { 904 "properties": {
834 "data": { 905 "data": {
835 "$ref": "#/definitions/models.RankingsResponse" 906 "$ref": "#/definitions/handlers.RankingsResponse"
836 } 907 }
837 } 908 }
838 } 909 }
@@ -877,7 +948,7 @@
877 "type": "object", 948 "type": "object",
878 "properties": { 949 "properties": {
879 "data": { 950 "data": {
880 "$ref": "#/definitions/models.SearchResponse" 951 "$ref": "#/definitions/handlers.SearchResponse"
881 } 952 }
882 } 953 }
883 } 954 }
@@ -914,7 +985,7 @@
914 "type": "object", 985 "type": "object",
915 "properties": { 986 "properties": {
916 "data": { 987 "data": {
917 "$ref": "#/definitions/models.LoginResponse" 988 "$ref": "#/definitions/handlers.LoginResponse"
918 } 989 }
919 } 990 }
920 } 991 }
@@ -949,7 +1020,7 @@
949 "type": "object", 1020 "type": "object",
950 "properties": { 1021 "properties": {
951 "data": { 1022 "data": {
952 "$ref": "#/definitions/models.LoginResponse" 1023 "$ref": "#/definitions/handlers.LoginResponse"
953 } 1024 }
954 } 1025 }
955 } 1026 }
@@ -998,7 +1069,7 @@
998 "type": "object", 1069 "type": "object",
999 "properties": { 1070 "properties": {
1000 "data": { 1071 "data": {
1001 "$ref": "#/definitions/models.ProfileResponse" 1072 "$ref": "#/definitions/handlers.ProfileResponse"
1002 } 1073 }
1003 } 1074 }
1004 } 1075 }
@@ -1022,29 +1093,7 @@
1022 } 1093 }
1023 }, 1094 },
1024 "definitions": { 1095 "definitions": {
1025 "models.Category": { 1096 "handlers.ChapterMapsResponse": {
1026 "type": "object",
1027 "properties": {
1028 "id": {
1029 "type": "integer"
1030 },
1031 "name": {
1032 "type": "string"
1033 }
1034 }
1035 },
1036 "models.Chapter": {
1037 "type": "object",
1038 "properties": {
1039 "id": {
1040 "type": "integer"
1041 },
1042 "name": {
1043 "type": "string"
1044 }
1045 }
1046 },
1047 "models.ChapterMapsResponse": {
1048 "type": "object", 1097 "type": "object",
1049 "properties": { 1098 "properties": {
1050 "chapter": { 1099 "chapter": {
@@ -1058,7 +1107,7 @@
1058 } 1107 }
1059 } 1108 }
1060 }, 1109 },
1061 "models.ChaptersResponse": { 1110 "handlers.ChaptersResponse": {
1062 "type": "object", 1111 "type": "object",
1063 "properties": { 1112 "properties": {
1064 "chapters": { 1113 "chapters": {
@@ -1072,7 +1121,7 @@
1072 } 1121 }
1073 } 1122 }
1074 }, 1123 },
1075 "models.CreateMapSummaryRequest": { 1124 "handlers.CreateMapSummaryRequest": {
1076 "type": "object", 1125 "type": "object",
1077 "required": [ 1126 "required": [
1078 "category_id", 1127 "category_id",
@@ -1102,7 +1151,7 @@
1102 } 1151 }
1103 } 1152 }
1104 }, 1153 },
1105 "models.DeleteMapSummaryRequest": { 1154 "handlers.DeleteMapSummaryRequest": {
1106 "type": "object", 1155 "type": "object",
1107 "required": [ 1156 "required": [
1108 "route_id" 1157 "route_id"
@@ -1113,7 +1162,7 @@
1113 } 1162 }
1114 } 1163 }
1115 }, 1164 },
1116 "models.EditMapImageRequest": { 1165 "handlers.EditMapImageRequest": {
1117 "type": "object", 1166 "type": "object",
1118 "required": [ 1167 "required": [
1119 "image" 1168 "image"
@@ -1124,7 +1173,7 @@
1124 } 1173 }
1125 } 1174 }
1126 }, 1175 },
1127 "models.EditMapSummaryRequest": { 1176 "handlers.EditMapSummaryRequest": {
1128 "type": "object", 1177 "type": "object",
1129 "required": [ 1178 "required": [
1130 "description", 1179 "description",
@@ -1154,128 +1203,114 @@
1154 } 1203 }
1155 } 1204 }
1156 }, 1205 },
1157 "models.Game": { 1206 "handlers.LoginResponse": {
1158 "type": "object", 1207 "type": "object",
1159 "properties": { 1208 "properties": {
1160 "id": { 1209 "token": {
1161 "type": "integer"
1162 },
1163 "is_coop": {
1164 "type": "boolean"
1165 },
1166 "name": {
1167 "type": "string" 1210 "type": "string"
1168 } 1211 }
1169 } 1212 }
1170 }, 1213 },
1171 "models.LoginResponse": { 1214 "handlers.LogsResponse": {
1172 "type": "object", 1215 "type": "object",
1173 "properties": { 1216 "properties": {
1174 "token": { 1217 "logs": {
1175 "type": "string" 1218 "type": "array",
1219 "items": {
1220 "$ref": "#/definitions/handlers.LogsResponseDetails"
1221 }
1176 } 1222 }
1177 } 1223 }
1178 }, 1224 },
1179 "models.Map": { 1225 "handlers.LogsResponseDetails": {
1180 "type": "object", 1226 "type": "object",
1181 "properties": { 1227 "properties": {
1182 "chapter_name": { 1228 "date": {
1183 "type": "string"
1184 },
1185 "game_name": {
1186 "type": "string" 1229 "type": "string"
1187 }, 1230 },
1188 "id": { 1231 "detail": {
1189 "type": "integer"
1190 },
1191 "image": {
1192 "type": "string" 1232 "type": "string"
1193 }, 1233 },
1194 "is_coop": { 1234 "user": {
1195 "type": "boolean" 1235 "$ref": "#/definitions/models.UserShort"
1196 },
1197 "map_name": {
1198 "type": "string"
1199 } 1236 }
1200 } 1237 }
1201 }, 1238 },
1202 "models.MapHistory": { 1239 "handlers.MapLeaderboardsResponse": {
1203 "type": "object", 1240 "type": "object",
1204 "properties": { 1241 "properties": {
1205 "date": { 1242 "map": {
1206 "type": "string" 1243 "$ref": "#/definitions/models.Map"
1207 },
1208 "runner_name": {
1209 "type": "string"
1210 }, 1244 },
1211 "score_count": { 1245 "records": {}
1212 "type": "integer"
1213 }
1214 } 1246 }
1215 }, 1247 },
1216 "models.MapRecords": { 1248 "handlers.MapSummaryResponse": {
1217 "type": "object", 1249 "type": "object",
1218 "properties": { 1250 "properties": {
1219 "records": {} 1251 "map": {
1252 "$ref": "#/definitions/models.Map"
1253 },
1254 "summary": {
1255 "$ref": "#/definitions/models.MapSummary"
1256 }
1220 } 1257 }
1221 }, 1258 },
1222 "models.MapRoute": { 1259 "handlers.ProfileRankings": {
1223 "type": "object", 1260 "type": "object",
1224 "properties": { 1261 "properties": {
1225 "category": { 1262 "cooperative": {
1226 "$ref": "#/definitions/models.Category" 1263 "$ref": "#/definitions/handlers.ProfileRankingsDetails"
1227 },
1228 "description": {
1229 "type": "string"
1230 }, 1264 },
1231 "history": { 1265 "overall": {
1232 "$ref": "#/definitions/models.MapHistory" 1266 "$ref": "#/definitions/handlers.ProfileRankingsDetails"
1233 }, 1267 },
1234 "rating": { 1268 "singleplayer": {
1235 "type": "number" 1269 "$ref": "#/definitions/handlers.ProfileRankingsDetails"
1236 },
1237 "route_id": {
1238 "type": "integer"
1239 },
1240 "showcase": {
1241 "type": "string"
1242 } 1270 }
1243 } 1271 }
1244 }, 1272 },
1245 "models.MapShort": { 1273 "handlers.ProfileRankingsDetails": {
1246 "type": "object", 1274 "type": "object",
1247 "properties": { 1275 "properties": {
1248 "id": { 1276 "completion_count": {
1249 "type": "integer" 1277 "type": "integer"
1250 }, 1278 },
1251 "name": { 1279 "completion_total": {
1252 "type": "string" 1280 "type": "integer"
1281 },
1282 "rank": {
1283 "type": "integer"
1253 } 1284 }
1254 } 1285 }
1255 }, 1286 },
1256 "models.MapSummary": { 1287 "handlers.ProfileRecords": {
1257 "type": "object", 1288 "type": "object",
1258 "properties": { 1289 "properties": {
1259 "routes": { 1290 "category_id": {
1291 "type": "integer"
1292 },
1293 "game_id": {
1294 "type": "integer"
1295 },
1296 "map_id": {
1297 "type": "integer"
1298 },
1299 "map_name": {
1300 "type": "string"
1301 },
1302 "map_wr_count": {
1303 "type": "integer"
1304 },
1305 "scores": {
1260 "type": "array", 1306 "type": "array",
1261 "items": { 1307 "items": {
1262 "$ref": "#/definitions/models.MapRoute" 1308 "$ref": "#/definitions/handlers.ProfileScores"
1263 } 1309 }
1264 } 1310 }
1265 } 1311 }
1266 }, 1312 },
1267 "models.MapSummaryResponse": { 1313 "handlers.ProfileResponse": {
1268 "type": "object",
1269 "properties": {
1270 "map": {
1271 "$ref": "#/definitions/models.Map"
1272 },
1273 "summary": {
1274 "$ref": "#/definitions/models.MapSummary"
1275 }
1276 }
1277 },
1278 "models.ProfileResponse": {
1279 "type": "object", 1314 "type": "object",
1280 "properties": { 1315 "properties": {
1281 "avatar_link": { 1316 "avatar_link": {
@@ -1284,39 +1319,68 @@
1284 "country_code": { 1319 "country_code": {
1285 "type": "string" 1320 "type": "string"
1286 }, 1321 },
1322 "links": {
1323 "$ref": "#/definitions/models.Links"
1324 },
1287 "profile": { 1325 "profile": {
1288 "type": "boolean" 1326 "type": "boolean"
1289 }, 1327 },
1290 "scores_mp": { 1328 "rankings": {
1329 "$ref": "#/definitions/handlers.ProfileRankings"
1330 },
1331 "records": {
1291 "type": "array", 1332 "type": "array",
1292 "items": { 1333 "items": {
1293 "$ref": "#/definitions/models.ScoreResponse" 1334 "$ref": "#/definitions/handlers.ProfileRecords"
1294 } 1335 }
1295 }, 1336 },
1296 "scores_sp": { 1337 "steam_id": {
1338 "type": "string"
1339 },
1340 "titles": {
1297 "type": "array", 1341 "type": "array",
1298 "items": { 1342 "items": {
1299 "$ref": "#/definitions/models.ScoreResponse" 1343 "$ref": "#/definitions/models.Title"
1300 } 1344 }
1301 }, 1345 },
1302 "steam_id": { 1346 "user_name": {
1347 "type": "string"
1348 }
1349 }
1350 },
1351 "handlers.ProfileScores": {
1352 "type": "object",
1353 "properties": {
1354 "date": {
1303 "type": "string" 1355 "type": "string"
1304 }, 1356 },
1305 "user_name": { 1357 "demo_id": {
1306 "type": "string" 1358 "type": "string"
1359 },
1360 "score_count": {
1361 "type": "integer"
1362 },
1363 "score_time": {
1364 "type": "integer"
1307 } 1365 }
1308 } 1366 }
1309 }, 1367 },
1310 "models.RankingsResponse": { 1368 "handlers.RankingsResponse": {
1311 "type": "object", 1369 "type": "object",
1312 "properties": { 1370 "properties": {
1313 "rankings_mp": { 1371 "rankings_multiplayer": {
1372 "type": "array",
1373 "items": {
1374 "$ref": "#/definitions/models.UserRanking"
1375 }
1376 },
1377 "rankings_overall": {
1314 "type": "array", 1378 "type": "array",
1315 "items": { 1379 "items": {
1316 "$ref": "#/definitions/models.UserRanking" 1380 "$ref": "#/definitions/models.UserRanking"
1317 } 1381 }
1318 }, 1382 },
1319 "rankings_sp": { 1383 "rankings_singleplayer": {
1320 "type": "array", 1384 "type": "array",
1321 "items": { 1385 "items": {
1322 "$ref": "#/definitions/models.UserRanking" 1386 "$ref": "#/definitions/models.UserRanking"
@@ -1324,7 +1388,7 @@
1324 } 1388 }
1325 } 1389 }
1326 }, 1390 },
1327 "models.RecordResponse": { 1391 "handlers.RecordResponse": {
1328 "type": "object", 1392 "type": "object",
1329 "properties": { 1393 "properties": {
1330 "score_count": { 1394 "score_count": {
@@ -1335,28 +1399,44 @@
1335 } 1399 }
1336 } 1400 }
1337 }, 1401 },
1338 "models.Response": { 1402 "handlers.ScoreLogsResponse": {
1339 "type": "object", 1403 "type": "object",
1340 "properties": { 1404 "properties": {
1341 "data": {}, 1405 "scores": {
1342 "message": { 1406 "type": "array",
1343 "type": "string" 1407 "items": {
1344 }, 1408 "$ref": "#/definitions/handlers.ScoreLogsResponseDetails"
1345 "success": { 1409 }
1346 "type": "boolean"
1347 } 1410 }
1348 } 1411 }
1349 }, 1412 },
1350 "models.ScoreResponse": { 1413 "handlers.ScoreLogsResponseDetails": {
1351 "type": "object", 1414 "type": "object",
1352 "properties": { 1415 "properties": {
1353 "map_id": { 1416 "date": {
1417 "type": "string"
1418 },
1419 "demo_id": {
1420 "type": "string"
1421 },
1422 "game": {
1423 "$ref": "#/definitions/models.Game"
1424 },
1425 "map": {
1426 "$ref": "#/definitions/models.MapShort"
1427 },
1428 "score_count": {
1354 "type": "integer" 1429 "type": "integer"
1355 }, 1430 },
1356 "records": {} 1431 "score_time": {
1432 "type": "integer"
1433 },
1434 "user": {
1435 "$ref": "#/definitions/models.UserShort"
1436 }
1357 } 1437 }
1358 }, 1438 },
1359 "models.SearchResponse": { 1439 "handlers.SearchResponse": {
1360 "type": "object", 1440 "type": "object",
1361 "properties": { 1441 "properties": {
1362 "maps": { 1442 "maps": {
@@ -1373,17 +1453,172 @@
1373 } 1453 }
1374 } 1454 }
1375 }, 1455 },
1376 "models.UserRanking": { 1456 "models.Category": {
1377 "type": "object", 1457 "type": "object",
1378 "properties": { 1458 "properties": {
1379 "total_score": { 1459 "id": {
1380 "type": "integer" 1460 "type": "integer"
1381 }, 1461 },
1382 "user_id": { 1462 "name": {
1383 "type": "string" 1463 "type": "string"
1464 }
1465 }
1466 },
1467 "models.Chapter": {
1468 "type": "object",
1469 "properties": {
1470 "id": {
1471 "type": "integer"
1384 }, 1472 },
1385 "user_name": { 1473 "name": {
1474 "type": "string"
1475 }
1476 }
1477 },
1478 "models.Game": {
1479 "type": "object",
1480 "properties": {
1481 "id": {
1482 "type": "integer"
1483 },
1484 "is_coop": {
1485 "type": "boolean"
1486 },
1487 "name": {
1488 "type": "string"
1489 }
1490 }
1491 },
1492 "models.Links": {
1493 "type": "object",
1494 "properties": {
1495 "p2sr": {
1496 "type": "string"
1497 },
1498 "stream": {
1499 "type": "string"
1500 },
1501 "twitch": {
1502 "type": "string"
1503 },
1504 "youtube": {
1505 "type": "string"
1506 }
1507 }
1508 },
1509 "models.Map": {
1510 "type": "object",
1511 "properties": {
1512 "chapter_name": {
1513 "type": "string"
1514 },
1515 "game_name": {
1516 "type": "string"
1517 },
1518 "id": {
1519 "type": "integer"
1520 },
1521 "image": {
1522 "type": "string"
1523 },
1524 "is_coop": {
1525 "type": "boolean"
1526 },
1527 "map_name": {
1528 "type": "string"
1529 }
1530 }
1531 },
1532 "models.MapHistory": {
1533 "type": "object",
1534 "properties": {
1535 "date": {
1536 "type": "string"
1537 },
1538 "runner_name": {
1539 "type": "string"
1540 },
1541 "score_count": {
1542 "type": "integer"
1543 }
1544 }
1545 },
1546 "models.MapRoute": {
1547 "type": "object",
1548 "properties": {
1549 "category": {
1550 "$ref": "#/definitions/models.Category"
1551 },
1552 "description": {
1553 "type": "string"
1554 },
1555 "history": {
1556 "$ref": "#/definitions/models.MapHistory"
1557 },
1558 "rating": {
1559 "type": "number"
1560 },
1561 "route_id": {
1562 "type": "integer"
1563 },
1564 "showcase": {
1565 "type": "string"
1566 }
1567 }
1568 },
1569 "models.MapShort": {
1570 "type": "object",
1571 "properties": {
1572 "id": {
1573 "type": "integer"
1574 },
1575 "name": {
1576 "type": "string"
1577 }
1578 }
1579 },
1580 "models.MapSummary": {
1581 "type": "object",
1582 "properties": {
1583 "routes": {
1584 "type": "array",
1585 "items": {
1586 "$ref": "#/definitions/models.MapRoute"
1587 }
1588 }
1589 }
1590 },
1591 "models.Response": {
1592 "type": "object",
1593 "properties": {
1594 "data": {},
1595 "message": {
1596 "type": "string"
1597 },
1598 "success": {
1599 "type": "boolean"
1600 }
1601 }
1602 },
1603 "models.Title": {
1604 "type": "object",
1605 "properties": {
1606 "color": {
1386 "type": "string" 1607 "type": "string"
1608 },
1609 "name": {
1610 "type": "string"
1611 }
1612 }
1613 },
1614 "models.UserRanking": {
1615 "type": "object",
1616 "properties": {
1617 "total_score": {
1618 "type": "integer"
1619 },
1620 "user": {
1621 "$ref": "#/definitions/models.UserShort"
1387 } 1622 }
1388 } 1623 }
1389 }, 1624 },