diff options
| author | Nidboj132 <lol2s@vp.plm> | 2023-09-05 18:23:11 +0200 |
|---|---|---|
| committer | Nidboj132 <lol2s@vp.plm> | 2023-09-05 18:23:11 +0200 |
| commit | 3869cb67351ccf3bc45b076f31afdc7133292c39 (patch) | |
| tree | dc03341e147dde0964bf6be84b14e13424c647b7 /docs/docs.go | |
| parent | added graph and fixed some css (diff) | |
| parent | fix: create map summary, why the fuck does this have to be a pointer integer?? (diff) | |
| download | lphub-3869cb67351ccf3bc45b076f31afdc7133292c39.tar.gz lphub-3869cb67351ccf3bc45b076f31afdc7133292c39.tar.bz2 lphub-3869cb67351ccf3bc45b076f31afdc7133292c39.zip | |
Merge branch 'main' of https://github.com/pektezol/LeastPortalsHub
Former-commit-id: 221385f463b7f5b0fc43a093b2c7c46e68d46d68
Diffstat (limited to '')
| -rw-r--r-- | docs/docs.go | 549 |
1 files changed, 392 insertions, 157 deletions
diff --git a/docs/docs.go b/docs/docs.go index 423afad..4129343 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/models.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/models.ChaptersResponse" | 176 | "$ref": "#/definitions/handlers.ChaptersResponse" |
| 177 | } | 177 | } |
| 178 | } | 178 | } |
| 179 | } | 179 | } |
| @@ -213,7 +213,90 @@ const docTemplate = `{ | |||
| 213 | "type": "object", | 213 | "type": "object", |
| 214 | "properties": { | 214 | "properties": { |
| 215 | "data": { | 215 | "data": { |
| 216 | "$ref": "#/definitions/models.LoginResponse" | 216 | "$ref": "#/definitions/handlers.LoginResponse" |
| 217 | } | ||
| 218 | } | ||
| 219 | } | ||
| 220 | ] | ||
| 221 | } | ||
| 222 | }, | ||
| 223 | "400": { | ||
| 224 | "description": "Bad Request", | ||
| 225 | "schema": { | ||
| 226 | "$ref": "#/definitions/models.Response" | ||
| 227 | } | ||
| 228 | } | ||
| 229 | } | ||
| 230 | } | ||
| 231 | }, | ||
| 232 | "/logs/mod": { | ||
| 233 | "get": { | ||
| 234 | "description": "Get mod logs.", | ||
| 235 | "produces": [ | ||
| 236 | "application/json" | ||
| 237 | ], | ||
| 238 | "tags": [ | ||
| 239 | "logs" | ||
| 240 | ], | ||
| 241 | "parameters": [ | ||
| 242 | { | ||
| 243 | "type": "string", | ||
| 244 | "description": "JWT Token", | ||
| 245 | "name": "Authorization", | ||
| 246 | "in": "header", | ||
| 247 | "required": true | ||
| 248 | } | ||
| 249 | ], | ||
| 250 | "responses": { | ||
| 251 | "200": { | ||
| 252 | "description": "OK", | ||
| 253 | "schema": { | ||
| 254 | "allOf": [ | ||
| 255 | { | ||
| 256 | "$ref": "#/definitions/models.Response" | ||
| 257 | }, | ||
| 258 | { | ||
| 259 | "type": "object", | ||
| 260 | "properties": { | ||
| 261 | "data": { | ||
| 262 | "$ref": "#/definitions/handlers.LogsResponse" | ||
| 263 | } | ||
| 264 | } | ||
| 265 | } | ||
| 266 | ] | ||
| 267 | } | ||
| 268 | }, | ||
| 269 | "400": { | ||
| 270 | "description": "Bad Request", | ||
| 271 | "schema": { | ||
| 272 | "$ref": "#/definitions/models.Response" | ||
| 273 | } | ||
| 274 | } | ||
| 275 | } | ||
| 276 | } | ||
| 277 | }, | ||
| 278 | "/logs/score": { | ||
| 279 | "get": { | ||
| 280 | "description": "Get score logs of every player.", | ||
| 281 | "produces": [ | ||
| 282 | "application/json" | ||
| 283 | ], | ||
| 284 | "tags": [ | ||
| 285 | "logs" | ||
| 286 | ], | ||
| 287 | "responses": { | ||
| 288 | "200": { | ||
| 289 | "description": "OK", | ||
| 290 | "schema": { | ||
| 291 | "allOf": [ | ||
| 292 | { | ||
| 293 | "$ref": "#/definitions/models.Response" | ||
| 294 | }, | ||
| 295 | { | ||
| 296 | "type": "object", | ||
| 297 | "properties": { | ||
| 298 | "data": { | ||
| 299 | "$ref": "#/definitions/handlers.ScoreLogsResponse" | ||
| 217 | } | 300 | } |
| 218 | } | 301 | } |
| 219 | } | 302 | } |
| @@ -259,7 +342,7 @@ const docTemplate = `{ | |||
| 259 | "in": "body", | 342 | "in": "body", |
| 260 | "required": true, | 343 | "required": true, |
| 261 | "schema": { | 344 | "schema": { |
| 262 | "$ref": "#/definitions/models.EditMapImageRequest" | 345 | "$ref": "#/definitions/handlers.EditMapImageRequest" |
| 263 | } | 346 | } |
| 264 | } | 347 | } |
| 265 | ], | 348 | ], |
| @@ -275,7 +358,7 @@ const docTemplate = `{ | |||
| 275 | "type": "object", | 358 | "type": "object", |
| 276 | "properties": { | 359 | "properties": { |
| 277 | "data": { | 360 | "data": { |
| 278 | "$ref": "#/definitions/models.EditMapImageRequest" | 361 | "$ref": "#/definitions/handlers.EditMapImageRequest" |
| 279 | } | 362 | } |
| 280 | } | 363 | } |
| 281 | } | 364 | } |
| @@ -321,19 +404,7 @@ const docTemplate = `{ | |||
| 321 | "type": "object", | 404 | "type": "object", |
| 322 | "properties": { | 405 | "properties": { |
| 323 | "data": { | 406 | "data": { |
| 324 | "allOf": [ | 407 | "$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 | } | 408 | } |
| 338 | } | 409 | } |
| 339 | } | 410 | } |
| @@ -414,7 +485,7 @@ const docTemplate = `{ | |||
| 414 | "type": "object", | 485 | "type": "object", |
| 415 | "properties": { | 486 | "properties": { |
| 416 | "data": { | 487 | "data": { |
| 417 | "$ref": "#/definitions/models.RecordResponse" | 488 | "$ref": "#/definitions/handlers.RecordResponse" |
| 418 | } | 489 | } |
| 419 | } | 490 | } |
| 420 | } | 491 | } |
| @@ -466,7 +537,7 @@ const docTemplate = `{ | |||
| 466 | "type": "object", | 537 | "type": "object", |
| 467 | "properties": { | 538 | "properties": { |
| 468 | "data": { | 539 | "data": { |
| 469 | "$ref": "#/definitions/models.MapSummaryResponse" | 540 | "$ref": "#/definitions/handlers.MapSummaryResponse" |
| 470 | } | 541 | } |
| 471 | } | 542 | } |
| 472 | } | 543 | } |
| @@ -510,7 +581,7 @@ const docTemplate = `{ | |||
| 510 | "in": "body", | 581 | "in": "body", |
| 511 | "required": true, | 582 | "required": true, |
| 512 | "schema": { | 583 | "schema": { |
| 513 | "$ref": "#/definitions/models.EditMapSummaryRequest" | 584 | "$ref": "#/definitions/handlers.EditMapSummaryRequest" |
| 514 | } | 585 | } |
| 515 | } | 586 | } |
| 516 | ], | 587 | ], |
| @@ -526,7 +597,7 @@ const docTemplate = `{ | |||
| 526 | "type": "object", | 597 | "type": "object", |
| 527 | "properties": { | 598 | "properties": { |
| 528 | "data": { | 599 | "data": { |
| 529 | "$ref": "#/definitions/models.EditMapSummaryRequest" | 600 | "$ref": "#/definitions/handlers.EditMapSummaryRequest" |
| 530 | } | 601 | } |
| 531 | } | 602 | } |
| 532 | } | 603 | } |
| @@ -570,7 +641,7 @@ const docTemplate = `{ | |||
| 570 | "in": "body", | 641 | "in": "body", |
| 571 | "required": true, | 642 | "required": true, |
| 572 | "schema": { | 643 | "schema": { |
| 573 | "$ref": "#/definitions/models.CreateMapSummaryRequest" | 644 | "$ref": "#/definitions/handlers.CreateMapSummaryRequest" |
| 574 | } | 645 | } |
| 575 | } | 646 | } |
| 576 | ], | 647 | ], |
| @@ -586,7 +657,7 @@ const docTemplate = `{ | |||
| 586 | "type": "object", | 657 | "type": "object", |
| 587 | "properties": { | 658 | "properties": { |
| 588 | "data": { | 659 | "data": { |
| 589 | "$ref": "#/definitions/models.CreateMapSummaryRequest" | 660 | "$ref": "#/definitions/handlers.CreateMapSummaryRequest" |
| 590 | } | 661 | } |
| 591 | } | 662 | } |
| 592 | } | 663 | } |
| @@ -630,7 +701,7 @@ const docTemplate = `{ | |||
| 630 | "in": "body", | 701 | "in": "body", |
| 631 | "required": true, | 702 | "required": true, |
| 632 | "schema": { | 703 | "schema": { |
| 633 | "$ref": "#/definitions/models.DeleteMapSummaryRequest" | 704 | "$ref": "#/definitions/handlers.DeleteMapSummaryRequest" |
| 634 | } | 705 | } |
| 635 | } | 706 | } |
| 636 | ], | 707 | ], |
| @@ -646,7 +717,7 @@ const docTemplate = `{ | |||
| 646 | "type": "object", | 717 | "type": "object", |
| 647 | "properties": { | 718 | "properties": { |
| 648 | "data": { | 719 | "data": { |
| 649 | "$ref": "#/definitions/models.DeleteMapSummaryRequest" | 720 | "$ref": "#/definitions/handlers.DeleteMapSummaryRequest" |
| 650 | } | 721 | } |
| 651 | } | 722 | } |
| 652 | } | 723 | } |
| @@ -695,7 +766,7 @@ const docTemplate = `{ | |||
| 695 | "type": "object", | 766 | "type": "object", |
| 696 | "properties": { | 767 | "properties": { |
| 697 | "data": { | 768 | "data": { |
| 698 | "$ref": "#/definitions/models.ProfileResponse" | 769 | "$ref": "#/definitions/handlers.ProfileResponse" |
| 699 | } | 770 | } |
| 700 | } | 771 | } |
| 701 | } | 772 | } |
| @@ -796,7 +867,7 @@ const docTemplate = `{ | |||
| 796 | "type": "object", | 867 | "type": "object", |
| 797 | "properties": { | 868 | "properties": { |
| 798 | "data": { | 869 | "data": { |
| 799 | "$ref": "#/definitions/models.ProfileResponse" | 870 | "$ref": "#/definitions/handlers.ProfileResponse" |
| 800 | } | 871 | } |
| 801 | } | 872 | } |
| 802 | } | 873 | } |
| @@ -839,7 +910,7 @@ const docTemplate = `{ | |||
| 839 | "type": "object", | 910 | "type": "object", |
| 840 | "properties": { | 911 | "properties": { |
| 841 | "data": { | 912 | "data": { |
| 842 | "$ref": "#/definitions/models.RankingsResponse" | 913 | "$ref": "#/definitions/handlers.RankingsResponse" |
| 843 | } | 914 | } |
| 844 | } | 915 | } |
| 845 | } | 916 | } |
| @@ -884,7 +955,7 @@ const docTemplate = `{ | |||
| 884 | "type": "object", | 955 | "type": "object", |
| 885 | "properties": { | 956 | "properties": { |
| 886 | "data": { | 957 | "data": { |
| 887 | "$ref": "#/definitions/models.SearchResponse" | 958 | "$ref": "#/definitions/handlers.SearchResponse" |
| 888 | } | 959 | } |
| 889 | } | 960 | } |
| 890 | } | 961 | } |
| @@ -921,7 +992,7 @@ const docTemplate = `{ | |||
| 921 | "type": "object", | 992 | "type": "object", |
| 922 | "properties": { | 993 | "properties": { |
| 923 | "data": { | 994 | "data": { |
| 924 | "$ref": "#/definitions/models.LoginResponse" | 995 | "$ref": "#/definitions/handlers.LoginResponse" |
| 925 | } | 996 | } |
| 926 | } | 997 | } |
| 927 | } | 998 | } |
| @@ -956,7 +1027,7 @@ const docTemplate = `{ | |||
| 956 | "type": "object", | 1027 | "type": "object", |
| 957 | "properties": { | 1028 | "properties": { |
| 958 | "data": { | 1029 | "data": { |
| 959 | "$ref": "#/definitions/models.LoginResponse" | 1030 | "$ref": "#/definitions/handlers.LoginResponse" |
| 960 | } | 1031 | } |
| 961 | } | 1032 | } |
| 962 | } | 1033 | } |
| @@ -1005,7 +1076,7 @@ const docTemplate = `{ | |||
| 1005 | "type": "object", | 1076 | "type": "object", |
| 1006 | "properties": { | 1077 | "properties": { |
| 1007 | "data": { | 1078 | "data": { |
| 1008 | "$ref": "#/definitions/models.ProfileResponse" | 1079 | "$ref": "#/definitions/handlers.ProfileResponse" |
| 1009 | } | 1080 | } |
| 1010 | } | 1081 | } |
| 1011 | } | 1082 | } |
| @@ -1029,29 +1100,7 @@ const docTemplate = `{ | |||
| 1029 | } | 1100 | } |
| 1030 | }, | 1101 | }, |
| 1031 | "definitions": { | 1102 | "definitions": { |
| 1032 | "models.Category": { | 1103 | "handlers.ChapterMapsResponse": { |
| 1033 | "type": "object", | ||
| 1034 | "properties": { | ||
| 1035 | "id": { | ||
| 1036 | "type": "integer" | ||
| 1037 | }, | ||
| 1038 | "name": { | ||
| 1039 | "type": "string" | ||
| 1040 | } | ||
| 1041 | } | ||
| 1042 | }, | ||
| 1043 | "models.Chapter": { | ||
| 1044 | "type": "object", | ||
| 1045 | "properties": { | ||
| 1046 | "id": { | ||
| 1047 | "type": "integer" | ||
| 1048 | }, | ||
| 1049 | "name": { | ||
| 1050 | "type": "string" | ||
| 1051 | } | ||
| 1052 | } | ||
| 1053 | }, | ||
| 1054 | "models.ChapterMapsResponse": { | ||
| 1055 | "type": "object", | 1104 | "type": "object", |
| 1056 | "properties": { | 1105 | "properties": { |
| 1057 | "chapter": { | 1106 | "chapter": { |
| @@ -1065,7 +1114,7 @@ const docTemplate = `{ | |||
| 1065 | } | 1114 | } |
| 1066 | } | 1115 | } |
| 1067 | }, | 1116 | }, |
| 1068 | "models.ChaptersResponse": { | 1117 | "handlers.ChaptersResponse": { |
| 1069 | "type": "object", | 1118 | "type": "object", |
| 1070 | "properties": { | 1119 | "properties": { |
| 1071 | "chapters": { | 1120 | "chapters": { |
| @@ -1079,7 +1128,7 @@ const docTemplate = `{ | |||
| 1079 | } | 1128 | } |
| 1080 | } | 1129 | } |
| 1081 | }, | 1130 | }, |
| 1082 | "models.CreateMapSummaryRequest": { | 1131 | "handlers.CreateMapSummaryRequest": { |
| 1083 | "type": "object", | 1132 | "type": "object", |
| 1084 | "required": [ | 1133 | "required": [ |
| 1085 | "category_id", | 1134 | "category_id", |
| @@ -1109,7 +1158,7 @@ const docTemplate = `{ | |||
| 1109 | } | 1158 | } |
| 1110 | } | 1159 | } |
| 1111 | }, | 1160 | }, |
| 1112 | "models.DeleteMapSummaryRequest": { | 1161 | "handlers.DeleteMapSummaryRequest": { |
| 1113 | "type": "object", | 1162 | "type": "object", |
| 1114 | "required": [ | 1163 | "required": [ |
| 1115 | "route_id" | 1164 | "route_id" |
| @@ -1120,7 +1169,7 @@ const docTemplate = `{ | |||
| 1120 | } | 1169 | } |
| 1121 | } | 1170 | } |
| 1122 | }, | 1171 | }, |
| 1123 | "models.EditMapImageRequest": { | 1172 | "handlers.EditMapImageRequest": { |
| 1124 | "type": "object", | 1173 | "type": "object", |
| 1125 | "required": [ | 1174 | "required": [ |
| 1126 | "image" | 1175 | "image" |
| @@ -1131,7 +1180,7 @@ const docTemplate = `{ | |||
| 1131 | } | 1180 | } |
| 1132 | } | 1181 | } |
| 1133 | }, | 1182 | }, |
| 1134 | "models.EditMapSummaryRequest": { | 1183 | "handlers.EditMapSummaryRequest": { |
| 1135 | "type": "object", | 1184 | "type": "object", |
| 1136 | "required": [ | 1185 | "required": [ |
| 1137 | "description", | 1186 | "description", |
| @@ -1161,128 +1210,114 @@ const docTemplate = `{ | |||
| 1161 | } | 1210 | } |
| 1162 | } | 1211 | } |
| 1163 | }, | 1212 | }, |
| 1164 | "models.Game": { | 1213 | "handlers.LoginResponse": { |
| 1165 | "type": "object", | 1214 | "type": "object", |
| 1166 | "properties": { | 1215 | "properties": { |
| 1167 | "id": { | 1216 | "token": { |
| 1168 | "type": "integer" | ||
| 1169 | }, | ||
| 1170 | "is_coop": { | ||
| 1171 | "type": "boolean" | ||
| 1172 | }, | ||
| 1173 | "name": { | ||
| 1174 | "type": "string" | 1217 | "type": "string" |
| 1175 | } | 1218 | } |
| 1176 | } | 1219 | } |
| 1177 | }, | 1220 | }, |
| 1178 | "models.LoginResponse": { | 1221 | "handlers.LogsResponse": { |
| 1179 | "type": "object", | 1222 | "type": "object", |
| 1180 | "properties": { | 1223 | "properties": { |
| 1181 | "token": { | 1224 | "logs": { |
| 1182 | "type": "string" | 1225 | "type": "array", |
| 1226 | "items": { | ||
| 1227 | "$ref": "#/definitions/handlers.LogsResponseDetails" | ||
| 1228 | } | ||
| 1183 | } | 1229 | } |
| 1184 | } | 1230 | } |
| 1185 | }, | 1231 | }, |
| 1186 | "models.Map": { | 1232 | "handlers.LogsResponseDetails": { |
| 1187 | "type": "object", | 1233 | "type": "object", |
| 1188 | "properties": { | 1234 | "properties": { |
| 1189 | "chapter_name": { | 1235 | "date": { |
| 1190 | "type": "string" | ||
| 1191 | }, | ||
| 1192 | "game_name": { | ||
| 1193 | "type": "string" | 1236 | "type": "string" |
| 1194 | }, | 1237 | }, |
| 1195 | "id": { | 1238 | "detail": { |
| 1196 | "type": "integer" | ||
| 1197 | }, | ||
| 1198 | "image": { | ||
| 1199 | "type": "string" | 1239 | "type": "string" |
| 1200 | }, | 1240 | }, |
| 1201 | "is_coop": { | 1241 | "user": { |
| 1202 | "type": "boolean" | 1242 | "$ref": "#/definitions/models.UserShort" |
| 1203 | }, | ||
| 1204 | "map_name": { | ||
| 1205 | "type": "string" | ||
| 1206 | } | 1243 | } |
| 1207 | } | 1244 | } |
| 1208 | }, | 1245 | }, |
| 1209 | "models.MapHistory": { | 1246 | "handlers.MapLeaderboardsResponse": { |
| 1210 | "type": "object", | 1247 | "type": "object", |
| 1211 | "properties": { | 1248 | "properties": { |
| 1212 | "date": { | 1249 | "map": { |
| 1213 | "type": "string" | 1250 | "$ref": "#/definitions/models.Map" |
| 1214 | }, | ||
| 1215 | "runner_name": { | ||
| 1216 | "type": "string" | ||
| 1217 | }, | 1251 | }, |
| 1218 | "score_count": { | 1252 | "records": {} |
| 1219 | "type": "integer" | ||
| 1220 | } | ||
| 1221 | } | 1253 | } |
| 1222 | }, | 1254 | }, |
| 1223 | "models.MapRecords": { | 1255 | "handlers.MapSummaryResponse": { |
| 1224 | "type": "object", | 1256 | "type": "object", |
| 1225 | "properties": { | 1257 | "properties": { |
| 1226 | "records": {} | 1258 | "map": { |
| 1259 | "$ref": "#/definitions/models.Map" | ||
| 1260 | }, | ||
| 1261 | "summary": { | ||
| 1262 | "$ref": "#/definitions/models.MapSummary" | ||
| 1263 | } | ||
| 1227 | } | 1264 | } |
| 1228 | }, | 1265 | }, |
| 1229 | "models.MapRoute": { | 1266 | "handlers.ProfileRankings": { |
| 1230 | "type": "object", | 1267 | "type": "object", |
| 1231 | "properties": { | 1268 | "properties": { |
| 1232 | "category": { | 1269 | "cooperative": { |
| 1233 | "$ref": "#/definitions/models.Category" | 1270 | "$ref": "#/definitions/handlers.ProfileRankingsDetails" |
| 1234 | }, | ||
| 1235 | "description": { | ||
| 1236 | "type": "string" | ||
| 1237 | }, | 1271 | }, |
| 1238 | "history": { | 1272 | "overall": { |
| 1239 | "$ref": "#/definitions/models.MapHistory" | 1273 | "$ref": "#/definitions/handlers.ProfileRankingsDetails" |
| 1240 | }, | 1274 | }, |
| 1241 | "rating": { | 1275 | "singleplayer": { |
| 1242 | "type": "number" | 1276 | "$ref": "#/definitions/handlers.ProfileRankingsDetails" |
| 1243 | }, | ||
| 1244 | "route_id": { | ||
| 1245 | "type": "integer" | ||
| 1246 | }, | ||
| 1247 | "showcase": { | ||
| 1248 | "type": "string" | ||
| 1249 | } | 1277 | } |
| 1250 | } | 1278 | } |
| 1251 | }, | 1279 | }, |
| 1252 | "models.MapShort": { | 1280 | "handlers.ProfileRankingsDetails": { |
| 1253 | "type": "object", | 1281 | "type": "object", |
| 1254 | "properties": { | 1282 | "properties": { |
| 1255 | "id": { | 1283 | "completion_count": { |
| 1256 | "type": "integer" | 1284 | "type": "integer" |
| 1257 | }, | 1285 | }, |
| 1258 | "name": { | 1286 | "completion_total": { |
| 1259 | "type": "string" | 1287 | "type": "integer" |
| 1288 | }, | ||
| 1289 | "rank": { | ||
| 1290 | "type": "integer" | ||
| 1260 | } | 1291 | } |
| 1261 | } | 1292 | } |
| 1262 | }, | 1293 | }, |
| 1263 | "models.MapSummary": { | 1294 | "handlers.ProfileRecords": { |
| 1264 | "type": "object", | 1295 | "type": "object", |
| 1265 | "properties": { | 1296 | "properties": { |
| 1266 | "routes": { | 1297 | "category_id": { |
| 1298 | "type": "integer" | ||
| 1299 | }, | ||
| 1300 | "game_id": { | ||
| 1301 | "type": "integer" | ||
| 1302 | }, | ||
| 1303 | "map_id": { | ||
| 1304 | "type": "integer" | ||
| 1305 | }, | ||
| 1306 | "map_name": { | ||
| 1307 | "type": "string" | ||
| 1308 | }, | ||
| 1309 | "map_wr_count": { | ||
| 1310 | "type": "integer" | ||
| 1311 | }, | ||
| 1312 | "scores": { | ||
| 1267 | "type": "array", | 1313 | "type": "array", |
| 1268 | "items": { | 1314 | "items": { |
| 1269 | "$ref": "#/definitions/models.MapRoute" | 1315 | "$ref": "#/definitions/handlers.ProfileScores" |
| 1270 | } | 1316 | } |
| 1271 | } | 1317 | } |
| 1272 | } | 1318 | } |
| 1273 | }, | 1319 | }, |
| 1274 | "models.MapSummaryResponse": { | 1320 | "handlers.ProfileResponse": { |
| 1275 | "type": "object", | ||
| 1276 | "properties": { | ||
| 1277 | "map": { | ||
| 1278 | "$ref": "#/definitions/models.Map" | ||
| 1279 | }, | ||
| 1280 | "summary": { | ||
| 1281 | "$ref": "#/definitions/models.MapSummary" | ||
| 1282 | } | ||
| 1283 | } | ||
| 1284 | }, | ||
| 1285 | "models.ProfileResponse": { | ||
| 1286 | "type": "object", | 1321 | "type": "object", |
| 1287 | "properties": { | 1322 | "properties": { |
| 1288 | "avatar_link": { | 1323 | "avatar_link": { |
| @@ -1291,39 +1326,68 @@ const docTemplate = `{ | |||
| 1291 | "country_code": { | 1326 | "country_code": { |
| 1292 | "type": "string" | 1327 | "type": "string" |
| 1293 | }, | 1328 | }, |
| 1329 | "links": { | ||
| 1330 | "$ref": "#/definitions/models.Links" | ||
| 1331 | }, | ||
| 1294 | "profile": { | 1332 | "profile": { |
| 1295 | "type": "boolean" | 1333 | "type": "boolean" |
| 1296 | }, | 1334 | }, |
| 1297 | "scores_mp": { | 1335 | "rankings": { |
| 1336 | "$ref": "#/definitions/handlers.ProfileRankings" | ||
| 1337 | }, | ||
| 1338 | "records": { | ||
| 1298 | "type": "array", | 1339 | "type": "array", |
| 1299 | "items": { | 1340 | "items": { |
| 1300 | "$ref": "#/definitions/models.ScoreResponse" | 1341 | "$ref": "#/definitions/handlers.ProfileRecords" |
| 1301 | } | 1342 | } |
| 1302 | }, | 1343 | }, |
| 1303 | "scores_sp": { | 1344 | "steam_id": { |
| 1345 | "type": "string" | ||
| 1346 | }, | ||
| 1347 | "titles": { | ||
| 1304 | "type": "array", | 1348 | "type": "array", |
| 1305 | "items": { | 1349 | "items": { |
| 1306 | "$ref": "#/definitions/models.ScoreResponse" | 1350 | "$ref": "#/definitions/models.Title" |
| 1307 | } | 1351 | } |
| 1308 | }, | 1352 | }, |
| 1309 | "steam_id": { | 1353 | "user_name": { |
| 1354 | "type": "string" | ||
| 1355 | } | ||
| 1356 | } | ||
| 1357 | }, | ||
| 1358 | "handlers.ProfileScores": { | ||
| 1359 | "type": "object", | ||
| 1360 | "properties": { | ||
| 1361 | "date": { | ||
| 1310 | "type": "string" | 1362 | "type": "string" |
| 1311 | }, | 1363 | }, |
| 1312 | "user_name": { | 1364 | "demo_id": { |
| 1313 | "type": "string" | 1365 | "type": "string" |
| 1366 | }, | ||
| 1367 | "score_count": { | ||
| 1368 | "type": "integer" | ||
| 1369 | }, | ||
| 1370 | "score_time": { | ||
| 1371 | "type": "integer" | ||
| 1314 | } | 1372 | } |
| 1315 | } | 1373 | } |
| 1316 | }, | 1374 | }, |
| 1317 | "models.RankingsResponse": { | 1375 | "handlers.RankingsResponse": { |
| 1318 | "type": "object", | 1376 | "type": "object", |
| 1319 | "properties": { | 1377 | "properties": { |
| 1320 | "rankings_mp": { | 1378 | "rankings_multiplayer": { |
| 1379 | "type": "array", | ||
| 1380 | "items": { | ||
| 1381 | "$ref": "#/definitions/models.UserRanking" | ||
| 1382 | } | ||
| 1383 | }, | ||
| 1384 | "rankings_overall": { | ||
| 1321 | "type": "array", | 1385 | "type": "array", |
| 1322 | "items": { | 1386 | "items": { |
| 1323 | "$ref": "#/definitions/models.UserRanking" | 1387 | "$ref": "#/definitions/models.UserRanking" |
| 1324 | } | 1388 | } |
| 1325 | }, | 1389 | }, |
| 1326 | "rankings_sp": { | 1390 | "rankings_singleplayer": { |
| 1327 | "type": "array", | 1391 | "type": "array", |
| 1328 | "items": { | 1392 | "items": { |
| 1329 | "$ref": "#/definitions/models.UserRanking" | 1393 | "$ref": "#/definitions/models.UserRanking" |
| @@ -1331,7 +1395,7 @@ const docTemplate = `{ | |||
| 1331 | } | 1395 | } |
| 1332 | } | 1396 | } |
| 1333 | }, | 1397 | }, |
| 1334 | "models.RecordResponse": { | 1398 | "handlers.RecordResponse": { |
| 1335 | "type": "object", | 1399 | "type": "object", |
| 1336 | "properties": { | 1400 | "properties": { |
| 1337 | "score_count": { | 1401 | "score_count": { |
| @@ -1342,28 +1406,44 @@ const docTemplate = `{ | |||
| 1342 | } | 1406 | } |
| 1343 | } | 1407 | } |
| 1344 | }, | 1408 | }, |
| 1345 | "models.Response": { | 1409 | "handlers.ScoreLogsResponse": { |
| 1346 | "type": "object", | 1410 | "type": "object", |
| 1347 | "properties": { | 1411 | "properties": { |
| 1348 | "data": {}, | 1412 | "scores": { |
| 1349 | "message": { | 1413 | "type": "array", |
| 1350 | "type": "string" | 1414 | "items": { |
| 1351 | }, | 1415 | "$ref": "#/definitions/handlers.ScoreLogsResponseDetails" |
| 1352 | "success": { | 1416 | } |
| 1353 | "type": "boolean" | ||
| 1354 | } | 1417 | } |
| 1355 | } | 1418 | } |
| 1356 | }, | 1419 | }, |
| 1357 | "models.ScoreResponse": { | 1420 | "handlers.ScoreLogsResponseDetails": { |
| 1358 | "type": "object", | 1421 | "type": "object", |
| 1359 | "properties": { | 1422 | "properties": { |
| 1360 | "map_id": { | 1423 | "date": { |
| 1424 | "type": "string" | ||
| 1425 | }, | ||
| 1426 | "demo_id": { | ||
| 1427 | "type": "string" | ||
| 1428 | }, | ||
| 1429 | "game": { | ||
| 1430 | "$ref": "#/definitions/models.Game" | ||
| 1431 | }, | ||
| 1432 | "map": { | ||
| 1433 | "$ref": "#/definitions/models.MapShort" | ||
| 1434 | }, | ||
| 1435 | "score_count": { | ||
| 1361 | "type": "integer" | 1436 | "type": "integer" |
| 1362 | }, | 1437 | }, |
| 1363 | "records": {} | 1438 | "score_time": { |
| 1439 | "type": "integer" | ||
| 1440 | }, | ||
| 1441 | "user": { | ||
| 1442 | "$ref": "#/definitions/models.UserShort" | ||
| 1443 | } | ||
| 1364 | } | 1444 | } |
| 1365 | }, | 1445 | }, |
| 1366 | "models.SearchResponse": { | 1446 | "handlers.SearchResponse": { |
| 1367 | "type": "object", | 1447 | "type": "object", |
| 1368 | "properties": { | 1448 | "properties": { |
| 1369 | "maps": { | 1449 | "maps": { |
| @@ -1380,17 +1460,172 @@ const docTemplate = `{ | |||
| 1380 | } | 1460 | } |
| 1381 | } | 1461 | } |
| 1382 | }, | 1462 | }, |
| 1383 | "models.UserRanking": { | 1463 | "models.Category": { |
| 1384 | "type": "object", | 1464 | "type": "object", |
| 1385 | "properties": { | 1465 | "properties": { |
| 1386 | "total_score": { | 1466 | "id": { |
| 1387 | "type": "integer" | 1467 | "type": "integer" |
| 1388 | }, | 1468 | }, |
| 1389 | "user_id": { | 1469 | "name": { |
| 1390 | "type": "string" | 1470 | "type": "string" |
| 1471 | } | ||
| 1472 | } | ||
| 1473 | }, | ||
| 1474 | "models.Chapter": { | ||
| 1475 | "type": "object", | ||
| 1476 | "properties": { | ||
| 1477 | "id": { | ||
| 1478 | "type": "integer" | ||
| 1391 | }, | 1479 | }, |
| 1392 | "user_name": { | 1480 | "name": { |
| 1481 | "type": "string" | ||
| 1482 | } | ||
| 1483 | } | ||
| 1484 | }, | ||
| 1485 | "models.Game": { | ||
| 1486 | "type": "object", | ||
| 1487 | "properties": { | ||
| 1488 | "id": { | ||
| 1489 | "type": "integer" | ||
| 1490 | }, | ||
| 1491 | "is_coop": { | ||
| 1492 | "type": "boolean" | ||
| 1493 | }, | ||
| 1494 | "name": { | ||
| 1495 | "type": "string" | ||
| 1496 | } | ||
| 1497 | } | ||
| 1498 | }, | ||
| 1499 | "models.Links": { | ||
| 1500 | "type": "object", | ||
| 1501 | "properties": { | ||
| 1502 | "p2sr": { | ||
| 1503 | "type": "string" | ||
| 1504 | }, | ||
| 1505 | "stream": { | ||
| 1506 | "type": "string" | ||
| 1507 | }, | ||
| 1508 | "twitch": { | ||
| 1509 | "type": "string" | ||
| 1510 | }, | ||
| 1511 | "youtube": { | ||
| 1512 | "type": "string" | ||
| 1513 | } | ||
| 1514 | } | ||
| 1515 | }, | ||
| 1516 | "models.Map": { | ||
| 1517 | "type": "object", | ||
| 1518 | "properties": { | ||
| 1519 | "chapter_name": { | ||
| 1520 | "type": "string" | ||
| 1521 | }, | ||
| 1522 | "game_name": { | ||
| 1523 | "type": "string" | ||
| 1524 | }, | ||
| 1525 | "id": { | ||
| 1526 | "type": "integer" | ||
| 1527 | }, | ||
| 1528 | "image": { | ||
| 1529 | "type": "string" | ||
| 1530 | }, | ||
| 1531 | "is_coop": { | ||
| 1532 | "type": "boolean" | ||
| 1533 | }, | ||
| 1534 | "map_name": { | ||
| 1535 | "type": "string" | ||
| 1536 | } | ||
| 1537 | } | ||
| 1538 | }, | ||
| 1539 | "models.MapHistory": { | ||
| 1540 | "type": "object", | ||
| 1541 | "properties": { | ||
| 1542 | "date": { | ||
| 1543 | "type": "string" | ||
| 1544 | }, | ||
| 1545 | "runner_name": { | ||
| 1546 | "type": "string" | ||
| 1547 | }, | ||
| 1548 | "score_count": { | ||
| 1549 | "type": "integer" | ||
| 1550 | } | ||
| 1551 | } | ||
| 1552 | }, | ||
| 1553 | "models.MapRoute": { | ||
| 1554 | "type": "object", | ||
| 1555 | "properties": { | ||
| 1556 | "category": { | ||
| 1557 | "$ref": "#/definitions/models.Category" | ||
| 1558 | }, | ||
| 1559 | "description": { | ||
| 1560 | "type": "string" | ||
| 1561 | }, | ||
| 1562 | "history": { | ||
| 1563 | "$ref": "#/definitions/models.MapHistory" | ||
| 1564 | }, | ||
| 1565 | "rating": { | ||
| 1566 | "type": "number" | ||
| 1567 | }, | ||
| 1568 | "route_id": { | ||
| 1569 | "type": "integer" | ||
| 1570 | }, | ||
| 1571 | "showcase": { | ||
| 1572 | "type": "string" | ||
| 1573 | } | ||
| 1574 | } | ||
| 1575 | }, | ||
| 1576 | "models.MapShort": { | ||
| 1577 | "type": "object", | ||
| 1578 | "properties": { | ||
| 1579 | "id": { | ||
| 1580 | "type": "integer" | ||
| 1581 | }, | ||
| 1582 | "name": { | ||
| 1583 | "type": "string" | ||
| 1584 | } | ||
| 1585 | } | ||
| 1586 | }, | ||
| 1587 | "models.MapSummary": { | ||
| 1588 | "type": "object", | ||
| 1589 | "properties": { | ||
| 1590 | "routes": { | ||
| 1591 | "type": "array", | ||
| 1592 | "items": { | ||
| 1593 | "$ref": "#/definitions/models.MapRoute" | ||
| 1594 | } | ||
| 1595 | } | ||
| 1596 | } | ||
| 1597 | }, | ||
| 1598 | "models.Response": { | ||
| 1599 | "type": "object", | ||
| 1600 | "properties": { | ||
| 1601 | "data": {}, | ||
| 1602 | "message": { | ||
| 1603 | "type": "string" | ||
| 1604 | }, | ||
| 1605 | "success": { | ||
| 1606 | "type": "boolean" | ||
| 1607 | } | ||
| 1608 | } | ||
| 1609 | }, | ||
| 1610 | "models.Title": { | ||
| 1611 | "type": "object", | ||
| 1612 | "properties": { | ||
| 1613 | "color": { | ||
| 1393 | "type": "string" | 1614 | "type": "string" |
| 1615 | }, | ||
| 1616 | "name": { | ||
| 1617 | "type": "string" | ||
| 1618 | } | ||
| 1619 | } | ||
| 1620 | }, | ||
| 1621 | "models.UserRanking": { | ||
| 1622 | "type": "object", | ||
| 1623 | "properties": { | ||
| 1624 | "total_score": { | ||
| 1625 | "type": "integer" | ||
| 1626 | }, | ||
| 1627 | "user": { | ||
| 1628 | "$ref": "#/definitions/models.UserShort" | ||
| 1394 | } | 1629 | } |
| 1395 | } | 1630 | } |
| 1396 | }, | 1631 | }, |