aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/docs.go119
-rw-r--r--docs/swagger.json119
-rw-r--r--docs/swagger.yaml107
3 files changed, 162 insertions, 183 deletions
diff --git a/docs/docs.go b/docs/docs.go
index d0c78ac..6357150 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -50,7 +50,7 @@ const docTemplate = `{
50 "type": "object", 50 "type": "object",
51 "properties": { 51 "properties": {
52 "data": { 52 "data": {
53 "$ref": "#/definitions/controllers.ChapterMapsResponse" 53 "$ref": "#/definitions/handlers.ChapterMapsResponse"
54 } 54 }
55 } 55 }
56 } 56 }
@@ -173,7 +173,7 @@ const docTemplate = `{
173 "type": "object", 173 "type": "object",
174 "properties": { 174 "properties": {
175 "data": { 175 "data": {
176 "$ref": "#/definitions/controllers.ChaptersResponse" 176 "$ref": "#/definitions/handlers.ChaptersResponse"
177 } 177 }
178 } 178 }
179 } 179 }
@@ -213,7 +213,7 @@ const docTemplate = `{
213 "type": "object", 213 "type": "object",
214 "properties": { 214 "properties": {
215 "data": { 215 "data": {
216 "$ref": "#/definitions/controllers.LoginResponse" 216 "$ref": "#/definitions/handlers.LoginResponse"
217 } 217 }
218 } 218 }
219 } 219 }
@@ -259,7 +259,7 @@ const docTemplate = `{
259 "in": "body", 259 "in": "body",
260 "required": true, 260 "required": true,
261 "schema": { 261 "schema": {
262 "$ref": "#/definitions/controllers.EditMapImageRequest" 262 "$ref": "#/definitions/handlers.EditMapImageRequest"
263 } 263 }
264 } 264 }
265 ], 265 ],
@@ -275,7 +275,7 @@ const docTemplate = `{
275 "type": "object", 275 "type": "object",
276 "properties": { 276 "properties": {
277 "data": { 277 "data": {
278 "$ref": "#/definitions/controllers.EditMapImageRequest" 278 "$ref": "#/definitions/handlers.EditMapImageRequest"
279 } 279 }
280 } 280 }
281 } 281 }
@@ -321,19 +321,7 @@ const docTemplate = `{
321 "type": "object", 321 "type": "object",
322 "properties": { 322 "properties": {
323 "data": { 323 "data": {
324 "allOf": [ 324 "$ref": "#/definitions/handlers.MapLeaderboardsResponse"
325 {
326 "$ref": "#/definitions/models.Map"
327 },
328 {
329 "type": "object",
330 "properties": {
331 "data": {
332 "$ref": "#/definitions/models.MapRecords"
333 }
334 }
335 }
336 ]
337 } 325 }
338 } 326 }
339 } 327 }
@@ -414,7 +402,7 @@ const docTemplate = `{
414 "type": "object", 402 "type": "object",
415 "properties": { 403 "properties": {
416 "data": { 404 "data": {
417 "$ref": "#/definitions/controllers.RecordResponse" 405 "$ref": "#/definitions/handlers.RecordResponse"
418 } 406 }
419 } 407 }
420 } 408 }
@@ -466,7 +454,7 @@ const docTemplate = `{
466 "type": "object", 454 "type": "object",
467 "properties": { 455 "properties": {
468 "data": { 456 "data": {
469 "$ref": "#/definitions/controllers.MapSummaryResponse" 457 "$ref": "#/definitions/handlers.MapSummaryResponse"
470 } 458 }
471 } 459 }
472 } 460 }
@@ -510,7 +498,7 @@ const docTemplate = `{
510 "in": "body", 498 "in": "body",
511 "required": true, 499 "required": true,
512 "schema": { 500 "schema": {
513 "$ref": "#/definitions/controllers.EditMapSummaryRequest" 501 "$ref": "#/definitions/handlers.EditMapSummaryRequest"
514 } 502 }
515 } 503 }
516 ], 504 ],
@@ -526,7 +514,7 @@ const docTemplate = `{
526 "type": "object", 514 "type": "object",
527 "properties": { 515 "properties": {
528 "data": { 516 "data": {
529 "$ref": "#/definitions/controllers.EditMapSummaryRequest" 517 "$ref": "#/definitions/handlers.EditMapSummaryRequest"
530 } 518 }
531 } 519 }
532 } 520 }
@@ -570,7 +558,7 @@ const docTemplate = `{
570 "in": "body", 558 "in": "body",
571 "required": true, 559 "required": true,
572 "schema": { 560 "schema": {
573 "$ref": "#/definitions/controllers.CreateMapSummaryRequest" 561 "$ref": "#/definitions/handlers.CreateMapSummaryRequest"
574 } 562 }
575 } 563 }
576 ], 564 ],
@@ -586,7 +574,7 @@ const docTemplate = `{
586 "type": "object", 574 "type": "object",
587 "properties": { 575 "properties": {
588 "data": { 576 "data": {
589 "$ref": "#/definitions/controllers.CreateMapSummaryRequest" 577 "$ref": "#/definitions/handlers.CreateMapSummaryRequest"
590 } 578 }
591 } 579 }
592 } 580 }
@@ -630,7 +618,7 @@ const docTemplate = `{
630 "in": "body", 618 "in": "body",
631 "required": true, 619 "required": true,
632 "schema": { 620 "schema": {
633 "$ref": "#/definitions/controllers.DeleteMapSummaryRequest" 621 "$ref": "#/definitions/handlers.DeleteMapSummaryRequest"
634 } 622 }
635 } 623 }
636 ], 624 ],
@@ -646,7 +634,7 @@ const docTemplate = `{
646 "type": "object", 634 "type": "object",
647 "properties": { 635 "properties": {
648 "data": { 636 "data": {
649 "$ref": "#/definitions/controllers.DeleteMapSummaryRequest" 637 "$ref": "#/definitions/handlers.DeleteMapSummaryRequest"
650 } 638 }
651 } 639 }
652 } 640 }
@@ -695,7 +683,7 @@ const docTemplate = `{
695 "type": "object", 683 "type": "object",
696 "properties": { 684 "properties": {
697 "data": { 685 "data": {
698 "$ref": "#/definitions/controllers.ProfileResponse" 686 "$ref": "#/definitions/handlers.ProfileResponse"
699 } 687 }
700 } 688 }
701 } 689 }
@@ -796,7 +784,7 @@ const docTemplate = `{
796 "type": "object", 784 "type": "object",
797 "properties": { 785 "properties": {
798 "data": { 786 "data": {
799 "$ref": "#/definitions/controllers.ProfileResponse" 787 "$ref": "#/definitions/handlers.ProfileResponse"
800 } 788 }
801 } 789 }
802 } 790 }
@@ -839,7 +827,7 @@ const docTemplate = `{
839 "type": "object", 827 "type": "object",
840 "properties": { 828 "properties": {
841 "data": { 829 "data": {
842 "$ref": "#/definitions/controllers.RankingsResponse" 830 "$ref": "#/definitions/handlers.RankingsResponse"
843 } 831 }
844 } 832 }
845 } 833 }
@@ -884,7 +872,7 @@ const docTemplate = `{
884 "type": "object", 872 "type": "object",
885 "properties": { 873 "properties": {
886 "data": { 874 "data": {
887 "$ref": "#/definitions/controllers.SearchResponse" 875 "$ref": "#/definitions/handlers.SearchResponse"
888 } 876 }
889 } 877 }
890 } 878 }
@@ -921,7 +909,7 @@ const docTemplate = `{
921 "type": "object", 909 "type": "object",
922 "properties": { 910 "properties": {
923 "data": { 911 "data": {
924 "$ref": "#/definitions/controllers.LoginResponse" 912 "$ref": "#/definitions/handlers.LoginResponse"
925 } 913 }
926 } 914 }
927 } 915 }
@@ -956,7 +944,7 @@ const docTemplate = `{
956 "type": "object", 944 "type": "object",
957 "properties": { 945 "properties": {
958 "data": { 946 "data": {
959 "$ref": "#/definitions/controllers.LoginResponse" 947 "$ref": "#/definitions/handlers.LoginResponse"
960 } 948 }
961 } 949 }
962 } 950 }
@@ -1005,7 +993,7 @@ const docTemplate = `{
1005 "type": "object", 993 "type": "object",
1006 "properties": { 994 "properties": {
1007 "data": { 995 "data": {
1008 "$ref": "#/definitions/controllers.ProfileResponse" 996 "$ref": "#/definitions/handlers.ProfileResponse"
1009 } 997 }
1010 } 998 }
1011 } 999 }
@@ -1029,7 +1017,7 @@ const docTemplate = `{
1029 } 1017 }
1030 }, 1018 },
1031 "definitions": { 1019 "definitions": {
1032 "controllers.ChapterMapsResponse": { 1020 "handlers.ChapterMapsResponse": {
1033 "type": "object", 1021 "type": "object",
1034 "properties": { 1022 "properties": {
1035 "chapter": { 1023 "chapter": {
@@ -1043,7 +1031,7 @@ const docTemplate = `{
1043 } 1031 }
1044 } 1032 }
1045 }, 1033 },
1046 "controllers.ChaptersResponse": { 1034 "handlers.ChaptersResponse": {
1047 "type": "object", 1035 "type": "object",
1048 "properties": { 1036 "properties": {
1049 "chapters": { 1037 "chapters": {
@@ -1057,7 +1045,7 @@ const docTemplate = `{
1057 } 1045 }
1058 } 1046 }
1059 }, 1047 },
1060 "controllers.CreateMapSummaryRequest": { 1048 "handlers.CreateMapSummaryRequest": {
1061 "type": "object", 1049 "type": "object",
1062 "required": [ 1050 "required": [
1063 "category_id", 1051 "category_id",
@@ -1087,7 +1075,7 @@ const docTemplate = `{
1087 } 1075 }
1088 } 1076 }
1089 }, 1077 },
1090 "controllers.DeleteMapSummaryRequest": { 1078 "handlers.DeleteMapSummaryRequest": {
1091 "type": "object", 1079 "type": "object",
1092 "required": [ 1080 "required": [
1093 "route_id" 1081 "route_id"
@@ -1098,7 +1086,7 @@ const docTemplate = `{
1098 } 1086 }
1099 } 1087 }
1100 }, 1088 },
1101 "controllers.EditMapImageRequest": { 1089 "handlers.EditMapImageRequest": {
1102 "type": "object", 1090 "type": "object",
1103 "required": [ 1091 "required": [
1104 "image" 1092 "image"
@@ -1109,7 +1097,7 @@ const docTemplate = `{
1109 } 1097 }
1110 } 1098 }
1111 }, 1099 },
1112 "controllers.EditMapSummaryRequest": { 1100 "handlers.EditMapSummaryRequest": {
1113 "type": "object", 1101 "type": "object",
1114 "required": [ 1102 "required": [
1115 "description", 1103 "description",
@@ -1139,7 +1127,7 @@ const docTemplate = `{
1139 } 1127 }
1140 } 1128 }
1141 }, 1129 },
1142 "controllers.LoginResponse": { 1130 "handlers.LoginResponse": {
1143 "type": "object", 1131 "type": "object",
1144 "properties": { 1132 "properties": {
1145 "token": { 1133 "token": {
@@ -1147,7 +1135,16 @@ const docTemplate = `{
1147 } 1135 }
1148 } 1136 }
1149 }, 1137 },
1150 "controllers.MapSummaryResponse": { 1138 "handlers.MapLeaderboardsResponse": {
1139 "type": "object",
1140 "properties": {
1141 "map": {
1142 "$ref": "#/definitions/models.Map"
1143 },
1144 "records": {}
1145 }
1146 },
1147 "handlers.MapSummaryResponse": {
1151 "type": "object", 1148 "type": "object",
1152 "properties": { 1149 "properties": {
1153 "map": { 1150 "map": {
@@ -1158,21 +1155,21 @@ const docTemplate = `{
1158 } 1155 }
1159 } 1156 }
1160 }, 1157 },
1161 "controllers.ProfileRankings": { 1158 "handlers.ProfileRankings": {
1162 "type": "object", 1159 "type": "object",
1163 "properties": { 1160 "properties": {
1164 "cooperative": { 1161 "cooperative": {
1165 "$ref": "#/definitions/controllers.ProfileRankingsDetails" 1162 "$ref": "#/definitions/handlers.ProfileRankingsDetails"
1166 }, 1163 },
1167 "overall": { 1164 "overall": {
1168 "$ref": "#/definitions/controllers.ProfileRankingsDetails" 1165 "$ref": "#/definitions/handlers.ProfileRankingsDetails"
1169 }, 1166 },
1170 "singleplayer": { 1167 "singleplayer": {
1171 "$ref": "#/definitions/controllers.ProfileRankingsDetails" 1168 "$ref": "#/definitions/handlers.ProfileRankingsDetails"
1172 } 1169 }
1173 } 1170 }
1174 }, 1171 },
1175 "controllers.ProfileRankingsDetails": { 1172 "handlers.ProfileRankingsDetails": {
1176 "type": "object", 1173 "type": "object",
1177 "properties": { 1174 "properties": {
1178 "completion_count": { 1175 "completion_count": {
@@ -1186,24 +1183,24 @@ const docTemplate = `{
1186 } 1183 }
1187 } 1184 }
1188 }, 1185 },
1189 "controllers.ProfileRecords": { 1186 "handlers.ProfileRecords": {
1190 "type": "object", 1187 "type": "object",
1191 "properties": { 1188 "properties": {
1192 "portal2_cooperative": { 1189 "portal2_cooperative": {
1193 "type": "array", 1190 "type": "array",
1194 "items": { 1191 "items": {
1195 "$ref": "#/definitions/controllers.ProfileRecordsDetails" 1192 "$ref": "#/definitions/handlers.ProfileRecordsDetails"
1196 } 1193 }
1197 }, 1194 },
1198 "portal2_singleplayer": { 1195 "portal2_singleplayer": {
1199 "type": "array", 1196 "type": "array",
1200 "items": { 1197 "items": {
1201 "$ref": "#/definitions/controllers.ProfileRecordsDetails" 1198 "$ref": "#/definitions/handlers.ProfileRecordsDetails"
1202 } 1199 }
1203 } 1200 }
1204 } 1201 }
1205 }, 1202 },
1206 "controllers.ProfileRecordsDetails": { 1203 "handlers.ProfileRecordsDetails": {
1207 "type": "object", 1204 "type": "object",
1208 "properties": { 1205 "properties": {
1209 "map_id": { 1206 "map_id": {
@@ -1215,12 +1212,12 @@ const docTemplate = `{
1215 "scores": { 1212 "scores": {
1216 "type": "array", 1213 "type": "array",
1217 "items": { 1214 "items": {
1218 "$ref": "#/definitions/controllers.ProfileScores" 1215 "$ref": "#/definitions/handlers.ProfileScores"
1219 } 1216 }
1220 } 1217 }
1221 } 1218 }
1222 }, 1219 },
1223 "controllers.ProfileResponse": { 1220 "handlers.ProfileResponse": {
1224 "type": "object", 1221 "type": "object",
1225 "properties": { 1222 "properties": {
1226 "avatar_link": { 1223 "avatar_link": {
@@ -1236,10 +1233,10 @@ const docTemplate = `{
1236 "type": "boolean" 1233 "type": "boolean"
1237 }, 1234 },
1238 "rankings": { 1235 "rankings": {
1239 "$ref": "#/definitions/controllers.ProfileRankings" 1236 "$ref": "#/definitions/handlers.ProfileRankings"
1240 }, 1237 },
1241 "records": { 1238 "records": {
1242 "$ref": "#/definitions/controllers.ProfileRecords" 1239 "$ref": "#/definitions/handlers.ProfileRecords"
1243 }, 1240 },
1244 "steam_id": { 1241 "steam_id": {
1245 "type": "string" 1242 "type": "string"
@@ -1255,7 +1252,7 @@ const docTemplate = `{
1255 } 1252 }
1256 } 1253 }
1257 }, 1254 },
1258 "controllers.ProfileScores": { 1255 "handlers.ProfileScores": {
1259 "type": "object", 1256 "type": "object",
1260 "properties": { 1257 "properties": {
1261 "date": { 1258 "date": {
@@ -1272,7 +1269,7 @@ const docTemplate = `{
1272 } 1269 }
1273 } 1270 }
1274 }, 1271 },
1275 "controllers.RankingsResponse": { 1272 "handlers.RankingsResponse": {
1276 "type": "object", 1273 "type": "object",
1277 "properties": { 1274 "properties": {
1278 "rankings_mp": { 1275 "rankings_mp": {
@@ -1289,7 +1286,7 @@ const docTemplate = `{
1289 } 1286 }
1290 } 1287 }
1291 }, 1288 },
1292 "controllers.RecordResponse": { 1289 "handlers.RecordResponse": {
1293 "type": "object", 1290 "type": "object",
1294 "properties": { 1291 "properties": {
1295 "score_count": { 1292 "score_count": {
@@ -1300,7 +1297,7 @@ const docTemplate = `{
1300 } 1297 }
1301 } 1298 }
1302 }, 1299 },
1303 "controllers.SearchResponse": { 1300 "handlers.SearchResponse": {
1304 "type": "object", 1301 "type": "object",
1305 "properties": { 1302 "properties": {
1306 "maps": { 1303 "maps": {
@@ -1407,12 +1404,6 @@ const docTemplate = `{
1407 } 1404 }
1408 } 1405 }
1409 }, 1406 },
1410 "models.MapRecords": {
1411 "type": "object",
1412 "properties": {
1413 "records": {}
1414 }
1415 },
1416 "models.MapRoute": { 1407 "models.MapRoute": {
1417 "type": "object", 1408 "type": "object",
1418 "properties": { 1409 "properties": {
diff --git a/docs/swagger.json b/docs/swagger.json
index cf37a5a..22e30d2 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/controllers.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/controllers.ChaptersResponse" 169 "$ref": "#/definitions/handlers.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/controllers.LoginResponse" 209 "$ref": "#/definitions/handlers.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/controllers.EditMapImageRequest" 255 "$ref": "#/definitions/handlers.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/controllers.EditMapImageRequest" 271 "$ref": "#/definitions/handlers.EditMapImageRequest"
272 } 272 }
273 } 273 }
274 } 274 }
@@ -314,19 +314,7 @@
314 "type": "object", 314 "type": "object",
315 "properties": { 315 "properties": {
316 "data": { 316 "data": {
317 "allOf": [ 317 "$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 } 318 }
331 } 319 }
332 } 320 }
@@ -407,7 +395,7 @@
407 "type": "object", 395 "type": "object",
408 "properties": { 396 "properties": {
409 "data": { 397 "data": {
410 "$ref": "#/definitions/controllers.RecordResponse" 398 "$ref": "#/definitions/handlers.RecordResponse"
411 } 399 }
412 } 400 }
413 } 401 }
@@ -459,7 +447,7 @@
459 "type": "object", 447 "type": "object",
460 "properties": { 448 "properties": {
461 "data": { 449 "data": {
462 "$ref": "#/definitions/controllers.MapSummaryResponse" 450 "$ref": "#/definitions/handlers.MapSummaryResponse"
463 } 451 }
464 } 452 }
465 } 453 }
@@ -503,7 +491,7 @@
503 "in": "body", 491 "in": "body",
504 "required": true, 492 "required": true,
505 "schema": { 493 "schema": {
506 "$ref": "#/definitions/controllers.EditMapSummaryRequest" 494 "$ref": "#/definitions/handlers.EditMapSummaryRequest"
507 } 495 }
508 } 496 }
509 ], 497 ],
@@ -519,7 +507,7 @@
519 "type": "object", 507 "type": "object",
520 "properties": { 508 "properties": {
521 "data": { 509 "data": {
522 "$ref": "#/definitions/controllers.EditMapSummaryRequest" 510 "$ref": "#/definitions/handlers.EditMapSummaryRequest"
523 } 511 }
524 } 512 }
525 } 513 }
@@ -563,7 +551,7 @@
563 "in": "body", 551 "in": "body",
564 "required": true, 552 "required": true,
565 "schema": { 553 "schema": {
566 "$ref": "#/definitions/controllers.CreateMapSummaryRequest" 554 "$ref": "#/definitions/handlers.CreateMapSummaryRequest"
567 } 555 }
568 } 556 }
569 ], 557 ],
@@ -579,7 +567,7 @@
579 "type": "object", 567 "type": "object",
580 "properties": { 568 "properties": {
581 "data": { 569 "data": {
582 "$ref": "#/definitions/controllers.CreateMapSummaryRequest" 570 "$ref": "#/definitions/handlers.CreateMapSummaryRequest"
583 } 571 }
584 } 572 }
585 } 573 }
@@ -623,7 +611,7 @@
623 "in": "body", 611 "in": "body",
624 "required": true, 612 "required": true,
625 "schema": { 613 "schema": {
626 "$ref": "#/definitions/controllers.DeleteMapSummaryRequest" 614 "$ref": "#/definitions/handlers.DeleteMapSummaryRequest"
627 } 615 }
628 } 616 }
629 ], 617 ],
@@ -639,7 +627,7 @@
639 "type": "object", 627 "type": "object",
640 "properties": { 628 "properties": {
641 "data": { 629 "data": {
642 "$ref": "#/definitions/controllers.DeleteMapSummaryRequest" 630 "$ref": "#/definitions/handlers.DeleteMapSummaryRequest"
643 } 631 }
644 } 632 }
645 } 633 }
@@ -688,7 +676,7 @@
688 "type": "object", 676 "type": "object",
689 "properties": { 677 "properties": {
690 "data": { 678 "data": {
691 "$ref": "#/definitions/controllers.ProfileResponse" 679 "$ref": "#/definitions/handlers.ProfileResponse"
692 } 680 }
693 } 681 }
694 } 682 }
@@ -789,7 +777,7 @@
789 "type": "object", 777 "type": "object",
790 "properties": { 778 "properties": {
791 "data": { 779 "data": {
792 "$ref": "#/definitions/controllers.ProfileResponse" 780 "$ref": "#/definitions/handlers.ProfileResponse"
793 } 781 }
794 } 782 }
795 } 783 }
@@ -832,7 +820,7 @@
832 "type": "object", 820 "type": "object",
833 "properties": { 821 "properties": {
834 "data": { 822 "data": {
835 "$ref": "#/definitions/controllers.RankingsResponse" 823 "$ref": "#/definitions/handlers.RankingsResponse"
836 } 824 }
837 } 825 }
838 } 826 }
@@ -877,7 +865,7 @@
877 "type": "object", 865 "type": "object",
878 "properties": { 866 "properties": {
879 "data": { 867 "data": {
880 "$ref": "#/definitions/controllers.SearchResponse" 868 "$ref": "#/definitions/handlers.SearchResponse"
881 } 869 }
882 } 870 }
883 } 871 }
@@ -914,7 +902,7 @@
914 "type": "object", 902 "type": "object",
915 "properties": { 903 "properties": {
916 "data": { 904 "data": {
917 "$ref": "#/definitions/controllers.LoginResponse" 905 "$ref": "#/definitions/handlers.LoginResponse"
918 } 906 }
919 } 907 }
920 } 908 }
@@ -949,7 +937,7 @@
949 "type": "object", 937 "type": "object",
950 "properties": { 938 "properties": {
951 "data": { 939 "data": {
952 "$ref": "#/definitions/controllers.LoginResponse" 940 "$ref": "#/definitions/handlers.LoginResponse"
953 } 941 }
954 } 942 }
955 } 943 }
@@ -998,7 +986,7 @@
998 "type": "object", 986 "type": "object",
999 "properties": { 987 "properties": {
1000 "data": { 988 "data": {
1001 "$ref": "#/definitions/controllers.ProfileResponse" 989 "$ref": "#/definitions/handlers.ProfileResponse"
1002 } 990 }
1003 } 991 }
1004 } 992 }
@@ -1022,7 +1010,7 @@
1022 } 1010 }
1023 }, 1011 },
1024 "definitions": { 1012 "definitions": {
1025 "controllers.ChapterMapsResponse": { 1013 "handlers.ChapterMapsResponse": {
1026 "type": "object", 1014 "type": "object",
1027 "properties": { 1015 "properties": {
1028 "chapter": { 1016 "chapter": {
@@ -1036,7 +1024,7 @@
1036 } 1024 }
1037 } 1025 }
1038 }, 1026 },
1039 "controllers.ChaptersResponse": { 1027 "handlers.ChaptersResponse": {
1040 "type": "object", 1028 "type": "object",
1041 "properties": { 1029 "properties": {
1042 "chapters": { 1030 "chapters": {
@@ -1050,7 +1038,7 @@
1050 } 1038 }
1051 } 1039 }
1052 }, 1040 },
1053 "controllers.CreateMapSummaryRequest": { 1041 "handlers.CreateMapSummaryRequest": {
1054 "type": "object", 1042 "type": "object",
1055 "required": [ 1043 "required": [
1056 "category_id", 1044 "category_id",
@@ -1080,7 +1068,7 @@
1080 } 1068 }
1081 } 1069 }
1082 }, 1070 },
1083 "controllers.DeleteMapSummaryRequest": { 1071 "handlers.DeleteMapSummaryRequest": {
1084 "type": "object", 1072 "type": "object",
1085 "required": [ 1073 "required": [
1086 "route_id" 1074 "route_id"
@@ -1091,7 +1079,7 @@
1091 } 1079 }
1092 } 1080 }
1093 }, 1081 },
1094 "controllers.EditMapImageRequest": { 1082 "handlers.EditMapImageRequest": {
1095 "type": "object", 1083 "type": "object",
1096 "required": [ 1084 "required": [
1097 "image" 1085 "image"
@@ -1102,7 +1090,7 @@
1102 } 1090 }
1103 } 1091 }
1104 }, 1092 },
1105 "controllers.EditMapSummaryRequest": { 1093 "handlers.EditMapSummaryRequest": {
1106 "type": "object", 1094 "type": "object",
1107 "required": [ 1095 "required": [
1108 "description", 1096 "description",
@@ -1132,7 +1120,7 @@
1132 } 1120 }
1133 } 1121 }
1134 }, 1122 },
1135 "controllers.LoginResponse": { 1123 "handlers.LoginResponse": {
1136 "type": "object", 1124 "type": "object",
1137 "properties": { 1125 "properties": {
1138 "token": { 1126 "token": {
@@ -1140,7 +1128,16 @@
1140 } 1128 }
1141 } 1129 }
1142 }, 1130 },
1143 "controllers.MapSummaryResponse": { 1131 "handlers.MapLeaderboardsResponse": {
1132 "type": "object",
1133 "properties": {
1134 "map": {
1135 "$ref": "#/definitions/models.Map"
1136 },
1137 "records": {}
1138 }
1139 },
1140 "handlers.MapSummaryResponse": {
1144 "type": "object", 1141 "type": "object",
1145 "properties": { 1142 "properties": {
1146 "map": { 1143 "map": {
@@ -1151,21 +1148,21 @@
1151 } 1148 }
1152 } 1149 }
1153 }, 1150 },
1154 "controllers.ProfileRankings": { 1151 "handlers.ProfileRankings": {
1155 "type": "object", 1152 "type": "object",
1156 "properties": { 1153 "properties": {
1157 "cooperative": { 1154 "cooperative": {
1158 "$ref": "#/definitions/controllers.ProfileRankingsDetails" 1155 "$ref": "#/definitions/handlers.ProfileRankingsDetails"
1159 }, 1156 },
1160 "overall": { 1157 "overall": {
1161 "$ref": "#/definitions/controllers.ProfileRankingsDetails" 1158 "$ref": "#/definitions/handlers.ProfileRankingsDetails"
1162 }, 1159 },
1163 "singleplayer": { 1160 "singleplayer": {
1164 "$ref": "#/definitions/controllers.ProfileRankingsDetails" 1161 "$ref": "#/definitions/handlers.ProfileRankingsDetails"
1165 } 1162 }
1166 } 1163 }
1167 }, 1164 },
1168 "controllers.ProfileRankingsDetails": { 1165 "handlers.ProfileRankingsDetails": {
1169 "type": "object", 1166 "type": "object",
1170 "properties": { 1167 "properties": {
1171 "completion_count": { 1168 "completion_count": {
@@ -1179,24 +1176,24 @@
1179 } 1176 }
1180 } 1177 }
1181 }, 1178 },
1182 "controllers.ProfileRecords": { 1179 "handlers.ProfileRecords": {
1183 "type": "object", 1180 "type": "object",
1184 "properties": { 1181 "properties": {
1185 "portal2_cooperative": { 1182 "portal2_cooperative": {
1186 "type": "array", 1183 "type": "array",
1187 "items": { 1184 "items": {
1188 "$ref": "#/definitions/controllers.ProfileRecordsDetails" 1185 "$ref": "#/definitions/handlers.ProfileRecordsDetails"
1189 } 1186 }
1190 }, 1187 },
1191 "portal2_singleplayer": { 1188 "portal2_singleplayer": {
1192 "type": "array", 1189 "type": "array",
1193 "items": { 1190 "items": {
1194 "$ref": "#/definitions/controllers.ProfileRecordsDetails" 1191 "$ref": "#/definitions/handlers.ProfileRecordsDetails"
1195 } 1192 }
1196 } 1193 }
1197 } 1194 }
1198 }, 1195 },
1199 "controllers.ProfileRecordsDetails": { 1196 "handlers.ProfileRecordsDetails": {
1200 "type": "object", 1197 "type": "object",
1201 "properties": { 1198 "properties": {
1202 "map_id": { 1199 "map_id": {
@@ -1208,12 +1205,12 @@
1208 "scores": { 1205 "scores": {
1209 "type": "array", 1206 "type": "array",
1210 "items": { 1207 "items": {
1211 "$ref": "#/definitions/controllers.ProfileScores" 1208 "$ref": "#/definitions/handlers.ProfileScores"
1212 } 1209 }
1213 } 1210 }
1214 } 1211 }
1215 }, 1212 },
1216 "controllers.ProfileResponse": { 1213 "handlers.ProfileResponse": {
1217 "type": "object", 1214 "type": "object",
1218 "properties": { 1215 "properties": {
1219 "avatar_link": { 1216 "avatar_link": {
@@ -1229,10 +1226,10 @@
1229 "type": "boolean" 1226 "type": "boolean"
1230 }, 1227 },
1231 "rankings": { 1228 "rankings": {
1232 "$ref": "#/definitions/controllers.ProfileRankings" 1229 "$ref": "#/definitions/handlers.ProfileRankings"
1233 }, 1230 },
1234 "records": { 1231 "records": {
1235 "$ref": "#/definitions/controllers.ProfileRecords" 1232 "$ref": "#/definitions/handlers.ProfileRecords"
1236 }, 1233 },
1237 "steam_id": { 1234 "steam_id": {
1238 "type": "string" 1235 "type": "string"
@@ -1248,7 +1245,7 @@
1248 } 1245 }
1249 } 1246 }
1250 }, 1247 },
1251 "controllers.ProfileScores": { 1248 "handlers.ProfileScores": {
1252 "type": "object", 1249 "type": "object",
1253 "properties": { 1250 "properties": {
1254 "date": { 1251 "date": {
@@ -1265,7 +1262,7 @@
1265 } 1262 }
1266 } 1263 }
1267 }, 1264 },
1268 "controllers.RankingsResponse": { 1265 "handlers.RankingsResponse": {
1269 "type": "object", 1266 "type": "object",
1270 "properties": { 1267 "properties": {
1271 "rankings_mp": { 1268 "rankings_mp": {
@@ -1282,7 +1279,7 @@
1282 } 1279 }
1283 } 1280 }
1284 }, 1281 },
1285 "controllers.RecordResponse": { 1282 "handlers.RecordResponse": {
1286 "type": "object", 1283 "type": "object",
1287 "properties": { 1284 "properties": {
1288 "score_count": { 1285 "score_count": {
@@ -1293,7 +1290,7 @@
1293 } 1290 }
1294 } 1291 }
1295 }, 1292 },
1296 "controllers.SearchResponse": { 1293 "handlers.SearchResponse": {
1297 "type": "object", 1294 "type": "object",
1298 "properties": { 1295 "properties": {
1299 "maps": { 1296 "maps": {
@@ -1400,12 +1397,6 @@
1400 } 1397 }
1401 } 1398 }
1402 }, 1399 },
1403 "models.MapRecords": {
1404 "type": "object",
1405 "properties": {
1406 "records": {}
1407 }
1408 },
1409 "models.MapRoute": { 1400 "models.MapRoute": {
1410 "type": "object", 1401 "type": "object",
1411 "properties": { 1402 "properties": {
diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index 0dd514d..462679e 100644
--- a/docs/swagger.yaml
+++ b/docs/swagger.yaml
@@ -1,6 +1,6 @@
1basePath: /v1 1basePath: /v1
2definitions: 2definitions:
3 controllers.ChapterMapsResponse: 3 handlers.ChapterMapsResponse:
4 properties: 4 properties:
5 chapter: 5 chapter:
6 $ref: '#/definitions/models.Chapter' 6 $ref: '#/definitions/models.Chapter'
@@ -9,7 +9,7 @@ definitions:
9 $ref: '#/definitions/models.MapShort' 9 $ref: '#/definitions/models.MapShort'
10 type: array 10 type: array
11 type: object 11 type: object
12 controllers.ChaptersResponse: 12 handlers.ChaptersResponse:
13 properties: 13 properties:
14 chapters: 14 chapters:
15 items: 15 items:
@@ -18,7 +18,7 @@ definitions:
18 game: 18 game:
19 $ref: '#/definitions/models.Game' 19 $ref: '#/definitions/models.Game'
20 type: object 20 type: object
21 controllers.CreateMapSummaryRequest: 21 handlers.CreateMapSummaryRequest:
22 properties: 22 properties:
23 category_id: 23 category_id:
24 type: integer 24 type: integer
@@ -39,21 +39,21 @@ definitions:
39 - score_count 39 - score_count
40 - user_name 40 - user_name
41 type: object 41 type: object
42 controllers.DeleteMapSummaryRequest: 42 handlers.DeleteMapSummaryRequest:
43 properties: 43 properties:
44 route_id: 44 route_id:
45 type: integer 45 type: integer
46 required: 46 required:
47 - route_id 47 - route_id
48 type: object 48 type: object
49 controllers.EditMapImageRequest: 49 handlers.EditMapImageRequest:
50 properties: 50 properties:
51 image: 51 image:
52 type: string 52 type: string
53 required: 53 required:
54 - image 54 - image
55 type: object 55 type: object
56 controllers.EditMapSummaryRequest: 56 handlers.EditMapSummaryRequest:
57 properties: 57 properties:
58 description: 58 description:
59 type: string 59 type: string
@@ -74,28 +74,34 @@ definitions:
74 - score_count 74 - score_count
75 - user_name 75 - user_name
76 type: object 76 type: object
77 controllers.LoginResponse: 77 handlers.LoginResponse:
78 properties: 78 properties:
79 token: 79 token:
80 type: string 80 type: string
81 type: object 81 type: object
82 controllers.MapSummaryResponse: 82 handlers.MapLeaderboardsResponse:
83 properties:
84 map:
85 $ref: '#/definitions/models.Map'
86 records: {}
87 type: object
88 handlers.MapSummaryResponse:
83 properties: 89 properties:
84 map: 90 map:
85 $ref: '#/definitions/models.Map' 91 $ref: '#/definitions/models.Map'
86 summary: 92 summary:
87 $ref: '#/definitions/models.MapSummary' 93 $ref: '#/definitions/models.MapSummary'
88 type: object 94 type: object
89 controllers.ProfileRankings: 95 handlers.ProfileRankings:
90 properties: 96 properties:
91 cooperative: 97 cooperative:
92 $ref: '#/definitions/controllers.ProfileRankingsDetails' 98 $ref: '#/definitions/handlers.ProfileRankingsDetails'
93 overall: 99 overall:
94 $ref: '#/definitions/controllers.ProfileRankingsDetails' 100 $ref: '#/definitions/handlers.ProfileRankingsDetails'
95 singleplayer: 101 singleplayer:
96 $ref: '#/definitions/controllers.ProfileRankingsDetails' 102 $ref: '#/definitions/handlers.ProfileRankingsDetails'
97 type: object 103 type: object
98 controllers.ProfileRankingsDetails: 104 handlers.ProfileRankingsDetails:
99 properties: 105 properties:
100 completion_count: 106 completion_count:
101 type: integer 107 type: integer
@@ -104,18 +110,18 @@ definitions:
104 rank: 110 rank:
105 type: integer 111 type: integer
106 type: object 112 type: object
107 controllers.ProfileRecords: 113 handlers.ProfileRecords:
108 properties: 114 properties:
109 portal2_cooperative: 115 portal2_cooperative:
110 items: 116 items:
111 $ref: '#/definitions/controllers.ProfileRecordsDetails' 117 $ref: '#/definitions/handlers.ProfileRecordsDetails'
112 type: array 118 type: array
113 portal2_singleplayer: 119 portal2_singleplayer:
114 items: 120 items:
115 $ref: '#/definitions/controllers.ProfileRecordsDetails' 121 $ref: '#/definitions/handlers.ProfileRecordsDetails'
116 type: array 122 type: array
117 type: object 123 type: object
118 controllers.ProfileRecordsDetails: 124 handlers.ProfileRecordsDetails:
119 properties: 125 properties:
120 map_id: 126 map_id:
121 type: integer 127 type: integer
@@ -123,10 +129,10 @@ definitions:
123 type: string 129 type: string
124 scores: 130 scores:
125 items: 131 items:
126 $ref: '#/definitions/controllers.ProfileScores' 132 $ref: '#/definitions/handlers.ProfileScores'
127 type: array 133 type: array
128 type: object 134 type: object
129 controllers.ProfileResponse: 135 handlers.ProfileResponse:
130 properties: 136 properties:
131 avatar_link: 137 avatar_link:
132 type: string 138 type: string
@@ -137,9 +143,9 @@ definitions:
137 profile: 143 profile:
138 type: boolean 144 type: boolean
139 rankings: 145 rankings:
140 $ref: '#/definitions/controllers.ProfileRankings' 146 $ref: '#/definitions/handlers.ProfileRankings'
141 records: 147 records:
142 $ref: '#/definitions/controllers.ProfileRecords' 148 $ref: '#/definitions/handlers.ProfileRecords'
143 steam_id: 149 steam_id:
144 type: string 150 type: string
145 titles: 151 titles:
@@ -149,7 +155,7 @@ definitions:
149 user_name: 155 user_name:
150 type: string 156 type: string
151 type: object 157 type: object
152 controllers.ProfileScores: 158 handlers.ProfileScores:
153 properties: 159 properties:
154 date: 160 date:
155 type: string 161 type: string
@@ -160,7 +166,7 @@ definitions:
160 score_time: 166 score_time:
161 type: integer 167 type: integer
162 type: object 168 type: object
163 controllers.RankingsResponse: 169 handlers.RankingsResponse:
164 properties: 170 properties:
165 rankings_mp: 171 rankings_mp:
166 items: 172 items:
@@ -171,14 +177,14 @@ definitions:
171 $ref: '#/definitions/models.UserRanking' 177 $ref: '#/definitions/models.UserRanking'
172 type: array 178 type: array
173 type: object 179 type: object
174 controllers.RecordResponse: 180 handlers.RecordResponse:
175 properties: 181 properties:
176 score_count: 182 score_count:
177 type: integer 183 type: integer
178 score_time: 184 score_time:
179 type: integer 185 type: integer
180 type: object 186 type: object
181 controllers.SearchResponse: 187 handlers.SearchResponse:
182 properties: 188 properties:
183 maps: 189 maps:
184 items: 190 items:
@@ -247,10 +253,6 @@ definitions:
247 score_count: 253 score_count:
248 type: integer 254 type: integer
249 type: object 255 type: object
250 models.MapRecords:
251 properties:
252 records: {}
253 type: object
254 models.MapRoute: 256 models.MapRoute:
255 properties: 257 properties:
256 category: 258 category:
@@ -340,7 +342,7 @@ paths:
340 - $ref: '#/definitions/models.Response' 342 - $ref: '#/definitions/models.Response'
341 - properties: 343 - properties:
342 data: 344 data:
343 $ref: '#/definitions/controllers.ChapterMapsResponse' 345 $ref: '#/definitions/handlers.ChapterMapsResponse'
344 type: object 346 type: object
345 "400": 347 "400":
346 description: Bad Request 348 description: Bad Request
@@ -414,7 +416,7 @@ paths:
414 - $ref: '#/definitions/models.Response' 416 - $ref: '#/definitions/models.Response'
415 - properties: 417 - properties:
416 data: 418 data:
417 $ref: '#/definitions/controllers.ChaptersResponse' 419 $ref: '#/definitions/handlers.ChaptersResponse'
418 type: object 420 type: object
419 "400": 421 "400":
420 description: Bad Request 422 description: Bad Request
@@ -437,7 +439,7 @@ paths:
437 - $ref: '#/definitions/models.Response' 439 - $ref: '#/definitions/models.Response'
438 - properties: 440 - properties:
439 data: 441 data:
440 $ref: '#/definitions/controllers.LoginResponse' 442 $ref: '#/definitions/handlers.LoginResponse'
441 type: object 443 type: object
442 "400": 444 "400":
443 description: Bad Request 445 description: Bad Request
@@ -464,7 +466,7 @@ paths:
464 name: request 466 name: request
465 required: true 467 required: true
466 schema: 468 schema:
467 $ref: '#/definitions/controllers.EditMapImageRequest' 469 $ref: '#/definitions/handlers.EditMapImageRequest'
468 produces: 470 produces:
469 - application/json 471 - application/json
470 responses: 472 responses:
@@ -475,7 +477,7 @@ paths:
475 - $ref: '#/definitions/models.Response' 477 - $ref: '#/definitions/models.Response'
476 - properties: 478 - properties:
477 data: 479 data:
478 $ref: '#/definitions/controllers.EditMapImageRequest' 480 $ref: '#/definitions/handlers.EditMapImageRequest'
479 type: object 481 type: object
480 "400": 482 "400":
481 description: Bad Request 483 description: Bad Request
@@ -502,12 +504,7 @@ paths:
502 - $ref: '#/definitions/models.Response' 504 - $ref: '#/definitions/models.Response'
503 - properties: 505 - properties:
504 data: 506 data:
505 allOf: 507 $ref: '#/definitions/handlers.MapLeaderboardsResponse'
506 - $ref: '#/definitions/models.Map'
507 - properties:
508 data:
509 $ref: '#/definitions/models.MapRecords'
510 type: object
511 type: object 508 type: object
512 "400": 509 "400":
513 description: Bad Request 510 description: Bad Request
@@ -558,7 +555,7 @@ paths:
558 - $ref: '#/definitions/models.Response' 555 - $ref: '#/definitions/models.Response'
559 - properties: 556 - properties:
560 data: 557 data:
561 $ref: '#/definitions/controllers.RecordResponse' 558 $ref: '#/definitions/handlers.RecordResponse'
562 type: object 559 type: object
563 "400": 560 "400":
564 description: Bad Request 561 description: Bad Request
@@ -589,7 +586,7 @@ paths:
589 name: request 586 name: request
590 required: true 587 required: true
591 schema: 588 schema:
592 $ref: '#/definitions/controllers.DeleteMapSummaryRequest' 589 $ref: '#/definitions/handlers.DeleteMapSummaryRequest'
593 produces: 590 produces:
594 - application/json 591 - application/json
595 responses: 592 responses:
@@ -600,7 +597,7 @@ paths:
600 - $ref: '#/definitions/models.Response' 597 - $ref: '#/definitions/models.Response'
601 - properties: 598 - properties:
602 data: 599 data:
603 $ref: '#/definitions/controllers.DeleteMapSummaryRequest' 600 $ref: '#/definitions/handlers.DeleteMapSummaryRequest'
604 type: object 601 type: object
605 "400": 602 "400":
606 description: Bad Request 603 description: Bad Request
@@ -626,7 +623,7 @@ paths:
626 - $ref: '#/definitions/models.Response' 623 - $ref: '#/definitions/models.Response'
627 - properties: 624 - properties:
628 data: 625 data:
629 $ref: '#/definitions/controllers.MapSummaryResponse' 626 $ref: '#/definitions/handlers.MapSummaryResponse'
630 type: object 627 type: object
631 "400": 628 "400":
632 description: Bad Request 629 description: Bad Request
@@ -652,7 +649,7 @@ paths:
652 name: request 649 name: request
653 required: true 650 required: true
654 schema: 651 schema:
655 $ref: '#/definitions/controllers.CreateMapSummaryRequest' 652 $ref: '#/definitions/handlers.CreateMapSummaryRequest'
656 produces: 653 produces:
657 - application/json 654 - application/json
658 responses: 655 responses:
@@ -663,7 +660,7 @@ paths:
663 - $ref: '#/definitions/models.Response' 660 - $ref: '#/definitions/models.Response'
664 - properties: 661 - properties:
665 data: 662 data:
666 $ref: '#/definitions/controllers.CreateMapSummaryRequest' 663 $ref: '#/definitions/handlers.CreateMapSummaryRequest'
667 type: object 664 type: object
668 "400": 665 "400":
669 description: Bad Request 666 description: Bad Request
@@ -689,7 +686,7 @@ paths:
689 name: request 686 name: request
690 required: true 687 required: true
691 schema: 688 schema:
692 $ref: '#/definitions/controllers.EditMapSummaryRequest' 689 $ref: '#/definitions/handlers.EditMapSummaryRequest'
693 produces: 690 produces:
694 - application/json 691 - application/json
695 responses: 692 responses:
@@ -700,7 +697,7 @@ paths:
700 - $ref: '#/definitions/models.Response' 697 - $ref: '#/definitions/models.Response'
701 - properties: 698 - properties:
702 data: 699 data:
703 $ref: '#/definitions/controllers.EditMapSummaryRequest' 700 $ref: '#/definitions/handlers.EditMapSummaryRequest'
704 type: object 701 type: object
705 "400": 702 "400":
706 description: Bad Request 703 description: Bad Request
@@ -729,7 +726,7 @@ paths:
729 - $ref: '#/definitions/models.Response' 726 - $ref: '#/definitions/models.Response'
730 - properties: 727 - properties:
731 data: 728 data:
732 $ref: '#/definitions/controllers.ProfileResponse' 729 $ref: '#/definitions/handlers.ProfileResponse'
733 type: object 730 type: object
734 "400": 731 "400":
735 description: Bad Request 732 description: Bad Request
@@ -761,7 +758,7 @@ paths:
761 - $ref: '#/definitions/models.Response' 758 - $ref: '#/definitions/models.Response'
762 - properties: 759 - properties:
763 data: 760 data:
764 $ref: '#/definitions/controllers.ProfileResponse' 761 $ref: '#/definitions/handlers.ProfileResponse'
765 type: object 762 type: object
766 "400": 763 "400":
767 description: Bad Request 764 description: Bad Request
@@ -818,7 +815,7 @@ paths:
818 - $ref: '#/definitions/models.Response' 815 - $ref: '#/definitions/models.Response'
819 - properties: 816 - properties:
820 data: 817 data:
821 $ref: '#/definitions/controllers.RankingsResponse' 818 $ref: '#/definitions/handlers.RankingsResponse'
822 type: object 819 type: object
823 "400": 820 "400":
824 description: Bad Request 821 description: Bad Request
@@ -844,7 +841,7 @@ paths:
844 - $ref: '#/definitions/models.Response' 841 - $ref: '#/definitions/models.Response'
845 - properties: 842 - properties:
846 data: 843 data:
847 $ref: '#/definitions/controllers.SearchResponse' 844 $ref: '#/definitions/handlers.SearchResponse'
848 type: object 845 type: object
849 "400": 846 "400":
850 description: Bad Request 847 description: Bad Request
@@ -865,7 +862,7 @@ paths:
865 - $ref: '#/definitions/models.Response' 862 - $ref: '#/definitions/models.Response'
866 - properties: 863 - properties:
867 data: 864 data:
868 $ref: '#/definitions/controllers.LoginResponse' 865 $ref: '#/definitions/handlers.LoginResponse'
869 type: object 866 type: object
870 "404": 867 "404":
871 description: Not Found 868 description: Not Found
@@ -885,7 +882,7 @@ paths:
885 - $ref: '#/definitions/models.Response' 882 - $ref: '#/definitions/models.Response'
886 - properties: 883 - properties:
887 data: 884 data:
888 $ref: '#/definitions/controllers.LoginResponse' 885 $ref: '#/definitions/handlers.LoginResponse'
889 type: object 886 type: object
890 "404": 887 "404":
891 description: Not Found 888 description: Not Found
@@ -914,7 +911,7 @@ paths:
914 - $ref: '#/definitions/models.Response' 911 - $ref: '#/definitions/models.Response'
915 - properties: 912 - properties:
916 data: 913 data:
917 $ref: '#/definitions/controllers.ProfileResponse' 914 $ref: '#/definitions/handlers.ProfileResponse'
918 type: object 915 type: object
919 "400": 916 "400":
920 description: Bad Request 917 description: Bad Request