aboutsummaryrefslogtreecommitdiff
path: root/docs/swagger.json
diff options
context:
space:
mode:
Diffstat (limited to 'docs/swagger.json')
-rw-r--r--docs/swagger.json300
1 files changed, 150 insertions, 150 deletions
diff --git a/docs/swagger.json b/docs/swagger.json
index 2e1a789..0f3dade 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/controllers.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/controllers.ChaptersResponse"
170 } 170 }
171 } 171 }
172 } 172 }
@@ -206,7 +206,7 @@
206 "type": "object", 206 "type": "object",
207 "properties": { 207 "properties": {
208 "data": { 208 "data": {
209 "$ref": "#/definitions/models.LoginResponse" 209 "$ref": "#/definitions/controllers.LoginResponse"
210 } 210 }
211 } 211 }
212 } 212 }
@@ -252,7 +252,7 @@
252 "in": "body", 252 "in": "body",
253 "required": true, 253 "required": true,
254 "schema": { 254 "schema": {
255 "$ref": "#/definitions/models.EditMapImageRequest" 255 "$ref": "#/definitions/controllers.EditMapImageRequest"
256 } 256 }
257 } 257 }
258 ], 258 ],
@@ -268,7 +268,7 @@
268 "type": "object", 268 "type": "object",
269 "properties": { 269 "properties": {
270 "data": { 270 "data": {
271 "$ref": "#/definitions/models.EditMapImageRequest" 271 "$ref": "#/definitions/controllers.EditMapImageRequest"
272 } 272 }
273 } 273 }
274 } 274 }
@@ -407,7 +407,7 @@
407 "type": "object", 407 "type": "object",
408 "properties": { 408 "properties": {
409 "data": { 409 "data": {
410 "$ref": "#/definitions/models.RecordResponse" 410 "$ref": "#/definitions/controllers.RecordResponse"
411 } 411 }
412 } 412 }
413 } 413 }
@@ -459,7 +459,7 @@
459 "type": "object", 459 "type": "object",
460 "properties": { 460 "properties": {
461 "data": { 461 "data": {
462 "$ref": "#/definitions/models.MapSummaryResponse" 462 "$ref": "#/definitions/controllers.MapSummaryResponse"
463 } 463 }
464 } 464 }
465 } 465 }
@@ -503,7 +503,7 @@
503 "in": "body", 503 "in": "body",
504 "required": true, 504 "required": true,
505 "schema": { 505 "schema": {
506 "$ref": "#/definitions/models.EditMapSummaryRequest" 506 "$ref": "#/definitions/controllers.EditMapSummaryRequest"
507 } 507 }
508 } 508 }
509 ], 509 ],
@@ -519,7 +519,7 @@
519 "type": "object", 519 "type": "object",
520 "properties": { 520 "properties": {
521 "data": { 521 "data": {
522 "$ref": "#/definitions/models.EditMapSummaryRequest" 522 "$ref": "#/definitions/controllers.EditMapSummaryRequest"
523 } 523 }
524 } 524 }
525 } 525 }
@@ -563,7 +563,7 @@
563 "in": "body", 563 "in": "body",
564 "required": true, 564 "required": true,
565 "schema": { 565 "schema": {
566 "$ref": "#/definitions/models.CreateMapSummaryRequest" 566 "$ref": "#/definitions/controllers.CreateMapSummaryRequest"
567 } 567 }
568 } 568 }
569 ], 569 ],
@@ -579,7 +579,7 @@
579 "type": "object", 579 "type": "object",
580 "properties": { 580 "properties": {
581 "data": { 581 "data": {
582 "$ref": "#/definitions/models.CreateMapSummaryRequest" 582 "$ref": "#/definitions/controllers.CreateMapSummaryRequest"
583 } 583 }
584 } 584 }
585 } 585 }
@@ -623,7 +623,7 @@
623 "in": "body", 623 "in": "body",
624 "required": true, 624 "required": true,
625 "schema": { 625 "schema": {
626 "$ref": "#/definitions/models.DeleteMapSummaryRequest" 626 "$ref": "#/definitions/controllers.DeleteMapSummaryRequest"
627 } 627 }
628 } 628 }
629 ], 629 ],
@@ -639,7 +639,7 @@
639 "type": "object", 639 "type": "object",
640 "properties": { 640 "properties": {
641 "data": { 641 "data": {
642 "$ref": "#/definitions/models.DeleteMapSummaryRequest" 642 "$ref": "#/definitions/controllers.DeleteMapSummaryRequest"
643 } 643 }
644 } 644 }
645 } 645 }
@@ -688,7 +688,7 @@
688 "type": "object", 688 "type": "object",
689 "properties": { 689 "properties": {
690 "data": { 690 "data": {
691 "$ref": "#/definitions/models.ProfileResponse" 691 "$ref": "#/definitions/controllers.ProfileResponse"
692 } 692 }
693 } 693 }
694 } 694 }
@@ -789,7 +789,7 @@
789 "type": "object", 789 "type": "object",
790 "properties": { 790 "properties": {
791 "data": { 791 "data": {
792 "$ref": "#/definitions/models.ProfileResponse" 792 "$ref": "#/definitions/controllers.ProfileResponse"
793 } 793 }
794 } 794 }
795 } 795 }
@@ -832,7 +832,7 @@
832 "type": "object", 832 "type": "object",
833 "properties": { 833 "properties": {
834 "data": { 834 "data": {
835 "$ref": "#/definitions/models.RankingsResponse" 835 "$ref": "#/definitions/controllers.RankingsResponse"
836 } 836 }
837 } 837 }
838 } 838 }
@@ -877,7 +877,7 @@
877 "type": "object", 877 "type": "object",
878 "properties": { 878 "properties": {
879 "data": { 879 "data": {
880 "$ref": "#/definitions/models.SearchResponse" 880 "$ref": "#/definitions/controllers.SearchResponse"
881 } 881 }
882 } 882 }
883 } 883 }
@@ -914,7 +914,7 @@
914 "type": "object", 914 "type": "object",
915 "properties": { 915 "properties": {
916 "data": { 916 "data": {
917 "$ref": "#/definitions/models.LoginResponse" 917 "$ref": "#/definitions/controllers.LoginResponse"
918 } 918 }
919 } 919 }
920 } 920 }
@@ -949,7 +949,7 @@
949 "type": "object", 949 "type": "object",
950 "properties": { 950 "properties": {
951 "data": { 951 "data": {
952 "$ref": "#/definitions/models.LoginResponse" 952 "$ref": "#/definitions/controllers.LoginResponse"
953 } 953 }
954 } 954 }
955 } 955 }
@@ -998,7 +998,7 @@
998 "type": "object", 998 "type": "object",
999 "properties": { 999 "properties": {
1000 "data": { 1000 "data": {
1001 "$ref": "#/definitions/models.ProfileResponse" 1001 "$ref": "#/definitions/controllers.ProfileResponse"
1002 } 1002 }
1003 } 1003 }
1004 } 1004 }
@@ -1022,29 +1022,7 @@
1022 } 1022 }
1023 }, 1023 },
1024 "definitions": { 1024 "definitions": {
1025 "models.Category": { 1025 "controllers.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", 1026 "type": "object",
1049 "properties": { 1027 "properties": {
1050 "chapter": { 1028 "chapter": {
@@ -1058,7 +1036,7 @@
1058 } 1036 }
1059 } 1037 }
1060 }, 1038 },
1061 "models.ChaptersResponse": { 1039 "controllers.ChaptersResponse": {
1062 "type": "object", 1040 "type": "object",
1063 "properties": { 1041 "properties": {
1064 "chapters": { 1042 "chapters": {
@@ -1072,7 +1050,7 @@
1072 } 1050 }
1073 } 1051 }
1074 }, 1052 },
1075 "models.CreateMapSummaryRequest": { 1053 "controllers.CreateMapSummaryRequest": {
1076 "type": "object", 1054 "type": "object",
1077 "required": [ 1055 "required": [
1078 "category_id", 1056 "category_id",
@@ -1102,7 +1080,7 @@
1102 } 1080 }
1103 } 1081 }
1104 }, 1082 },
1105 "models.DeleteMapSummaryRequest": { 1083 "controllers.DeleteMapSummaryRequest": {
1106 "type": "object", 1084 "type": "object",
1107 "required": [ 1085 "required": [
1108 "route_id" 1086 "route_id"
@@ -1113,7 +1091,7 @@
1113 } 1091 }
1114 } 1092 }
1115 }, 1093 },
1116 "models.EditMapImageRequest": { 1094 "controllers.EditMapImageRequest": {
1117 "type": "object", 1095 "type": "object",
1118 "required": [ 1096 "required": [
1119 "image" 1097 "image"
@@ -1124,7 +1102,7 @@
1124 } 1102 }
1125 } 1103 }
1126 }, 1104 },
1127 "models.EditMapSummaryRequest": { 1105 "controllers.EditMapSummaryRequest": {
1128 "type": "object", 1106 "type": "object",
1129 "required": [ 1107 "required": [
1130 "description", 1108 "description",
@@ -1154,24 +1132,143 @@
1154 } 1132 }
1155 } 1133 }
1156 }, 1134 },
1157 "models.Game": { 1135 "controllers.LoginResponse": {
1136 "type": "object",
1137 "properties": {
1138 "token": {
1139 "type": "string"
1140 }
1141 }
1142 },
1143 "controllers.MapSummaryResponse": {
1144 "type": "object",
1145 "properties": {
1146 "map": {
1147 "$ref": "#/definitions/models.Map"
1148 },
1149 "summary": {
1150 "$ref": "#/definitions/models.MapSummary"
1151 }
1152 }
1153 },
1154 "controllers.ProfileResponse": {
1155 "type": "object",
1156 "properties": {
1157 "avatar_link": {
1158 "type": "string"
1159 },
1160 "country_code": {
1161 "type": "string"
1162 },
1163 "profile": {
1164 "type": "boolean"
1165 },
1166 "scores_mp": {
1167 "type": "array",
1168 "items": {
1169 "$ref": "#/definitions/controllers.ScoreResponse"
1170 }
1171 },
1172 "scores_sp": {
1173 "type": "array",
1174 "items": {
1175 "$ref": "#/definitions/controllers.ScoreResponse"
1176 }
1177 },
1178 "steam_id": {
1179 "type": "string"
1180 },
1181 "user_name": {
1182 "type": "string"
1183 }
1184 }
1185 },
1186 "controllers.RankingsResponse": {
1187 "type": "object",
1188 "properties": {
1189 "rankings_mp": {
1190 "type": "array",
1191 "items": {
1192 "$ref": "#/definitions/models.UserRanking"
1193 }
1194 },
1195 "rankings_sp": {
1196 "type": "array",
1197 "items": {
1198 "$ref": "#/definitions/models.UserRanking"
1199 }
1200 }
1201 }
1202 },
1203 "controllers.RecordResponse": {
1204 "type": "object",
1205 "properties": {
1206 "score_count": {
1207 "type": "integer"
1208 },
1209 "score_time": {
1210 "type": "integer"
1211 }
1212 }
1213 },
1214 "controllers.ScoreResponse": {
1215 "type": "object",
1216 "properties": {
1217 "map_id": {
1218 "type": "integer"
1219 },
1220 "records": {}
1221 }
1222 },
1223 "controllers.SearchResponse": {
1224 "type": "object",
1225 "properties": {
1226 "maps": {
1227 "type": "array",
1228 "items": {
1229 "$ref": "#/definitions/models.MapShort"
1230 }
1231 },
1232 "players": {
1233 "type": "array",
1234 "items": {
1235 "$ref": "#/definitions/models.UserShort"
1236 }
1237 }
1238 }
1239 },
1240 "models.Category": {
1158 "type": "object", 1241 "type": "object",
1159 "properties": { 1242 "properties": {
1160 "id": { 1243 "id": {
1161 "type": "integer" 1244 "type": "integer"
1162 }, 1245 },
1163 "is_coop": { 1246 "name": {
1164 "type": "boolean" 1247 "type": "string"
1248 }
1249 }
1250 },
1251 "models.Chapter": {
1252 "type": "object",
1253 "properties": {
1254 "id": {
1255 "type": "integer"
1165 }, 1256 },
1166 "name": { 1257 "name": {
1167 "type": "string" 1258 "type": "string"
1168 } 1259 }
1169 } 1260 }
1170 }, 1261 },
1171 "models.LoginResponse": { 1262 "models.Game": {
1172 "type": "object", 1263 "type": "object",
1173 "properties": { 1264 "properties": {
1174 "token": { 1265 "id": {
1266 "type": "integer"
1267 },
1268 "is_coop": {
1269 "type": "boolean"
1270 },
1271 "name": {
1175 "type": "string" 1272 "type": "string"
1176 } 1273 }
1177 } 1274 }
@@ -1264,77 +1361,6 @@
1264 } 1361 }
1265 } 1362 }
1266 }, 1363 },
1267 "models.MapSummaryResponse": {
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",
1280 "properties": {
1281 "avatar_link": {
1282 "type": "string"
1283 },
1284 "country_code": {
1285 "type": "string"
1286 },
1287 "profile": {
1288 "type": "boolean"
1289 },
1290 "scores_mp": {
1291 "type": "array",
1292 "items": {
1293 "$ref": "#/definitions/models.ScoreResponse"
1294 }
1295 },
1296 "scores_sp": {
1297 "type": "array",
1298 "items": {
1299 "$ref": "#/definitions/models.ScoreResponse"
1300 }
1301 },
1302 "steam_id": {
1303 "type": "string"
1304 },
1305 "user_name": {
1306 "type": "string"
1307 }
1308 }
1309 },
1310 "models.RankingsResponse": {
1311 "type": "object",
1312 "properties": {
1313 "rankings_mp": {
1314 "type": "array",
1315 "items": {
1316 "$ref": "#/definitions/models.UserRanking"
1317 }
1318 },
1319 "rankings_sp": {
1320 "type": "array",
1321 "items": {
1322 "$ref": "#/definitions/models.UserRanking"
1323 }
1324 }
1325 }
1326 },
1327 "models.RecordResponse": {
1328 "type": "object",
1329 "properties": {
1330 "score_count": {
1331 "type": "integer"
1332 },
1333 "score_time": {
1334 "type": "integer"
1335 }
1336 }
1337 },
1338 "models.Response": { 1364 "models.Response": {
1339 "type": "object", 1365 "type": "object",
1340 "properties": { 1366 "properties": {
@@ -1347,32 +1373,6 @@
1347 } 1373 }
1348 } 1374 }
1349 }, 1375 },
1350 "models.ScoreResponse": {
1351 "type": "object",
1352 "properties": {
1353 "map_id": {
1354 "type": "integer"
1355 },
1356 "records": {}
1357 }
1358 },
1359 "models.SearchResponse": {
1360 "type": "object",
1361 "properties": {
1362 "maps": {
1363 "type": "array",
1364 "items": {
1365 "$ref": "#/definitions/models.MapShort"
1366 }
1367 },
1368 "players": {
1369 "type": "array",
1370 "items": {
1371 "$ref": "#/definitions/models.UserShort"
1372 }
1373 }
1374 }
1375 },
1376 "models.UserRanking": { 1376 "models.UserRanking": {
1377 "type": "object", 1377 "type": "object",
1378 "properties": { 1378 "properties": {