diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-08-30 16:33:25 +0300 |
|---|---|---|
| committer | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-08-30 16:33:25 +0300 |
| commit | c709ff5c9f275ff096153c3405b820baa5175231 (patch) | |
| tree | e14b1766fccf29fb8316691c2a5cfe5b1b0e631c /docs/docs.go | |
| parent | feat: better leaderboards response, coop additions (#45) (diff) | |
| download | lphub-c709ff5c9f275ff096153c3405b820baa5175231.tar.gz lphub-c709ff5c9f275ff096153c3405b820baa5175231.tar.bz2 lphub-c709ff5c9f275ff096153c3405b820baa5175231.zip | |
docs: map leaderboards response
Former-commit-id: a2c27052fbdacaa0e329270e1dd961602623d5d1
Diffstat (limited to 'docs/docs.go')
| -rw-r--r-- | docs/docs.go | 119 |
1 files changed, 55 insertions, 64 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": { |