aboutsummaryrefslogtreecommitdiff
path: root/docs/swagger.json
diff options
context:
space:
mode:
Diffstat (limited to 'docs/swagger.json')
-rw-r--r--docs/swagger.json641
1 files changed, 472 insertions, 169 deletions
diff --git a/docs/swagger.json b/docs/swagger.json
index ad2a659..2e1a789 100644
--- a/docs/swagger.json
+++ b/docs/swagger.json
@@ -15,13 +15,13 @@
15 "paths": { 15 "paths": {
16 "/chapters/{id}": { 16 "/chapters/{id}": {
17 "get": { 17 "get": {
18 "description": "Get maps from the specified chapter id.",
18 "produces": [ 19 "produces": [
19 "application/json" 20 "application/json"
20 ], 21 ],
21 "tags": [ 22 "tags": [
22 "games \u0026 chapters" 23 "games \u0026 chapters"
23 ], 24 ],
24 "summary": "Get maps from the specified chapter id.",
25 "parameters": [ 25 "parameters": [
26 { 26 {
27 "type": "integer", 27 "type": "integer",
@@ -59,45 +59,9 @@
59 } 59 }
60 } 60 }
61 }, 61 },
62 "/demo": {
63 "get": {
64 "produces": [
65 "application/json"
66 ],
67 "tags": [
68 "rankings"
69 ],
70 "summary": "Get rankings of every player.",
71 "responses": {
72 "200": {
73 "description": "OK",
74 "schema": {
75 "allOf": [
76 {
77 "$ref": "#/definitions/models.Response"
78 },
79 {
80 "type": "object",
81 "properties": {
82 "data": {
83 "$ref": "#/definitions/models.RankingsResponse"
84 }
85 }
86 }
87 ]
88 }
89 },
90 "400": {
91 "description": "Bad Request",
92 "schema": {
93 "$ref": "#/definitions/models.Response"
94 }
95 }
96 }
97 }
98 },
99 "/demos": { 62 "/demos": {
100 "get": { 63 "get": {
64 "description": "Get demo with specified demo uuid.",
101 "consumes": [ 65 "consumes": [
102 "application/json" 66 "application/json"
103 ], 67 ],
@@ -107,10 +71,9 @@
107 "tags": [ 71 "tags": [
108 "demo" 72 "demo"
109 ], 73 ],
110 "summary": "Get demo with specified demo uuid.",
111 "parameters": [ 74 "parameters": [
112 { 75 {
113 "type": "integer", 76 "type": "string",
114 "description": "Demo UUID", 77 "description": "Demo UUID",
115 "name": "uuid", 78 "name": "uuid",
116 "in": "query", 79 "in": "query",
@@ -135,13 +98,13 @@
135 }, 98 },
136 "/games": { 99 "/games": {
137 "get": { 100 "get": {
101 "description": "Get games from the leaderboards.",
138 "produces": [ 102 "produces": [
139 "application/json" 103 "application/json"
140 ], 104 ],
141 "tags": [ 105 "tags": [
142 "games \u0026 chapters" 106 "games \u0026 chapters"
143 ], 107 ],
144 "summary": "Get games from the leaderboards.",
145 "responses": { 108 "responses": {
146 "200": { 109 "200": {
147 "description": "OK", 110 "description": "OK",
@@ -175,13 +138,13 @@
175 }, 138 },
176 "/games/{id}": { 139 "/games/{id}": {
177 "get": { 140 "get": {
141 "description": "Get chapters from the specified game id.",
178 "produces": [ 142 "produces": [
179 "application/json" 143 "application/json"
180 ], 144 ],
181 "tags": [ 145 "tags": [
182 "games \u0026 chapters" 146 "games \u0026 chapters"
183 ], 147 ],
184 "summary": "Get chapters from the specified game id.",
185 "parameters": [ 148 "parameters": [
186 { 149 {
187 "type": "integer", 150 "type": "integer",
@@ -221,6 +184,7 @@
221 }, 184 },
222 "/login": { 185 "/login": {
223 "get": { 186 "get": {
187 "description": "Get (redirect) login page for Steam auth.",
224 "consumes": [ 188 "consumes": [
225 "application/json" 189 "application/json"
226 ], 190 ],
@@ -230,7 +194,6 @@
230 "tags": [ 194 "tags": [
231 "login" 195 "login"
232 ], 196 ],
233 "summary": "Get (redirect) login page for Steam auth.",
234 "responses": { 197 "responses": {
235 "200": { 198 "200": {
236 "description": "OK", 199 "description": "OK",
@@ -259,15 +222,77 @@
259 } 222 }
260 } 223 }
261 }, 224 },
225 "/maps/{id}/image": {
226 "put": {
227 "description": "Edit map image with specified map id.",
228 "produces": [
229 "application/json"
230 ],
231 "tags": [
232 "maps"
233 ],
234 "parameters": [
235 {
236 "type": "string",
237 "description": "JWT Token",
238 "name": "Authorization",
239 "in": "header",
240 "required": true
241 },
242 {
243 "type": "integer",
244 "description": "Map ID",
245 "name": "id",
246 "in": "path",
247 "required": true
248 },
249 {
250 "description": "Body",
251 "name": "request",
252 "in": "body",
253 "required": true,
254 "schema": {
255 "$ref": "#/definitions/models.EditMapImageRequest"
256 }
257 }
258 ],
259 "responses": {
260 "200": {
261 "description": "OK",
262 "schema": {
263 "allOf": [
264 {
265 "$ref": "#/definitions/models.Response"
266 },
267 {
268 "type": "object",
269 "properties": {
270 "data": {
271 "$ref": "#/definitions/models.EditMapImageRequest"
272 }
273 }
274 }
275 ]
276 }
277 },
278 "400": {
279 "description": "Bad Request",
280 "schema": {
281 "$ref": "#/definitions/models.Response"
282 }
283 }
284 }
285 }
286 },
262 "/maps/{id}/leaderboards": { 287 "/maps/{id}/leaderboards": {
263 "get": { 288 "get": {
289 "description": "Get map leaderboards with specified id.",
264 "produces": [ 290 "produces": [
265 "application/json" 291 "application/json"
266 ], 292 ],
267 "tags": [ 293 "tags": [
268 "maps" 294 "maps"
269 ], 295 ],
270 "summary": "Get map leaderboards with specified id.",
271 "parameters": [ 296 "parameters": [
272 { 297 {
273 "type": "integer", 298 "type": "integer",
@@ -319,6 +344,7 @@
319 }, 344 },
320 "/maps/{id}/record": { 345 "/maps/{id}/record": {
321 "post": { 346 "post": {
347 "description": "Post record with demo of a specific map.",
322 "consumes": [ 348 "consumes": [
323 "multipart/form-data" 349 "multipart/form-data"
324 ], 350 ],
@@ -328,9 +354,15 @@
328 "tags": [ 354 "tags": [
329 "maps" 355 "maps"
330 ], 356 ],
331 "summary": "Post record with demo of a specific map.",
332 "parameters": [ 357 "parameters": [
333 { 358 {
359 "type": "integer",
360 "description": "Map ID",
361 "name": "id",
362 "in": "path",
363 "required": true
364 },
365 {
334 "type": "string", 366 "type": "string",
335 "description": "JWT Token", 367 "description": "JWT Token",
336 "name": "Authorization", 368 "name": "Authorization",
@@ -338,42 +370,29 @@
338 "required": true 370 "required": true
339 }, 371 },
340 { 372 {
341 "type": "array", 373 "type": "file",
342 "items": { 374 "description": "Host Demo",
343 "type": "file" 375 "name": "host_demo",
344 },
345 "description": "Demos",
346 "name": "demos",
347 "in": "formData", 376 "in": "formData",
348 "required": true 377 "required": true
349 }, 378 },
350 { 379 {
351 "type": "integer", 380 "type": "file",
352 "description": "Score Count", 381 "description": "Partner Demo",
353 "name": "score_count", 382 "name": "partner_demo",
354 "in": "formData", 383 "in": "formData"
355 "required": true
356 },
357 {
358 "type": "integer",
359 "description": "Score Time",
360 "name": "score_time",
361 "in": "formData",
362 "required": true
363 }, 384 },
364 { 385 {
365 "type": "boolean", 386 "type": "boolean",
366 "description": "Is Partner Orange", 387 "description": "Is Partner Orange",
367 "name": "is_partner_orange", 388 "name": "is_partner_orange",
368 "in": "formData", 389 "in": "formData"
369 "required": true
370 }, 390 },
371 { 391 {
372 "type": "string", 392 "type": "string",
373 "description": "Partner ID", 393 "description": "Partner ID",
374 "name": "partner_id", 394 "name": "partner_id",
375 "in": "formData", 395 "in": "formData"
376 "required": true
377 } 396 }
378 ], 397 ],
379 "responses": { 398 "responses": {
@@ -388,7 +407,7 @@
388 "type": "object", 407 "type": "object",
389 "properties": { 408 "properties": {
390 "data": { 409 "data": {
391 "$ref": "#/definitions/models.RecordRequest" 410 "$ref": "#/definitions/models.RecordResponse"
392 } 411 }
393 } 412 }
394 } 413 }
@@ -412,13 +431,13 @@
412 }, 431 },
413 "/maps/{id}/summary": { 432 "/maps/{id}/summary": {
414 "get": { 433 "get": {
434 "description": "Get map summary with specified id.",
415 "produces": [ 435 "produces": [
416 "application/json" 436 "application/json"
417 ], 437 ],
418 "tags": [ 438 "tags": [
419 "maps" 439 "maps"
420 ], 440 ],
421 "summary": "Get map summary with specified id.",
422 "parameters": [ 441 "parameters": [
423 { 442 {
424 "type": "integer", 443 "type": "integer",
@@ -440,19 +459,187 @@
440 "type": "object", 459 "type": "object",
441 "properties": { 460 "properties": {
442 "data": { 461 "data": {
443 "allOf": [ 462 "$ref": "#/definitions/models.MapSummaryResponse"
444 { 463 }
445 "$ref": "#/definitions/models.Map" 464 }
446 }, 465 }
447 { 466 ]
448 "type": "object", 467 }
449 "properties": { 468 },
450 "data": { 469 "400": {
451 "$ref": "#/definitions/models.MapSummary" 470 "description": "Bad Request",
452 } 471 "schema": {
453 } 472 "$ref": "#/definitions/models.Response"
454 } 473 }
455 ] 474 }
475 }
476 },
477 "put": {
478 "description": "Edit map summary with specified map id.",
479 "produces": [
480 "application/json"
481 ],
482 "tags": [
483 "maps"
484 ],
485 "parameters": [
486 {
487 "type": "string",
488 "description": "JWT Token",
489 "name": "Authorization",
490 "in": "header",
491 "required": true
492 },
493 {
494 "type": "integer",
495 "description": "Map ID",
496 "name": "id",
497 "in": "path",
498 "required": true
499 },
500 {
501 "description": "Body",
502 "name": "request",
503 "in": "body",
504 "required": true,
505 "schema": {
506 "$ref": "#/definitions/models.EditMapSummaryRequest"
507 }
508 }
509 ],
510 "responses": {
511 "200": {
512 "description": "OK",
513 "schema": {
514 "allOf": [
515 {
516 "$ref": "#/definitions/models.Response"
517 },
518 {
519 "type": "object",
520 "properties": {
521 "data": {
522 "$ref": "#/definitions/models.EditMapSummaryRequest"
523 }
524 }
525 }
526 ]
527 }
528 },
529 "400": {
530 "description": "Bad Request",
531 "schema": {
532 "$ref": "#/definitions/models.Response"
533 }
534 }
535 }
536 },
537 "post": {
538 "description": "Create map summary with specified map id.",
539 "produces": [
540 "application/json"
541 ],
542 "tags": [
543 "maps"
544 ],
545 "parameters": [
546 {
547 "type": "string",
548 "description": "JWT Token",
549 "name": "Authorization",
550 "in": "header",
551 "required": true
552 },
553 {
554 "type": "integer",
555 "description": "Map ID",
556 "name": "id",
557 "in": "path",
558 "required": true
559 },
560 {
561 "description": "Body",
562 "name": "request",
563 "in": "body",
564 "required": true,
565 "schema": {
566 "$ref": "#/definitions/models.CreateMapSummaryRequest"
567 }
568 }
569 ],
570 "responses": {
571 "200": {
572 "description": "OK",
573 "schema": {
574 "allOf": [
575 {
576 "$ref": "#/definitions/models.Response"
577 },
578 {
579 "type": "object",
580 "properties": {
581 "data": {
582 "$ref": "#/definitions/models.CreateMapSummaryRequest"
583 }
584 }
585 }
586 ]
587 }
588 },
589 "400": {
590 "description": "Bad Request",
591 "schema": {
592 "$ref": "#/definitions/models.Response"
593 }
594 }
595 }
596 },
597 "delete": {
598 "description": "Delete map summary with specified map id.",
599 "produces": [
600 "application/json"
601 ],
602 "tags": [
603 "maps"
604 ],
605 "parameters": [
606 {
607 "type": "string",
608 "description": "JWT Token",
609 "name": "Authorization",
610 "in": "header",
611 "required": true
612 },
613 {
614 "type": "integer",
615 "description": "Map ID",
616 "name": "id",
617 "in": "path",
618 "required": true
619 },
620 {
621 "description": "Body",
622 "name": "request",
623 "in": "body",
624 "required": true,
625 "schema": {
626 "$ref": "#/definitions/models.DeleteMapSummaryRequest"
627 }
628 }
629 ],
630 "responses": {
631 "200": {
632 "description": "OK",
633 "schema": {
634 "allOf": [
635 {
636 "$ref": "#/definitions/models.Response"
637 },
638 {
639 "type": "object",
640 "properties": {
641 "data": {
642 "$ref": "#/definitions/models.DeleteMapSummaryRequest"
456 } 643 }
457 } 644 }
458 } 645 }
@@ -470,6 +657,7 @@
470 }, 657 },
471 "/profile": { 658 "/profile": {
472 "get": { 659 "get": {
660 "description": "Get profile page of session user.",
473 "consumes": [ 661 "consumes": [
474 "application/json" 662 "application/json"
475 ], 663 ],
@@ -479,7 +667,6 @@
479 "tags": [ 667 "tags": [
480 "users" 668 "users"
481 ], 669 ],
482 "summary": "Get profile page of session user.",
483 "parameters": [ 670 "parameters": [
484 { 671 {
485 "type": "string", 672 "type": "string",
@@ -523,6 +710,7 @@
523 } 710 }
524 }, 711 },
525 "put": { 712 "put": {
713 "description": "Update country code of session user.",
526 "consumes": [ 714 "consumes": [
527 "application/json" 715 "application/json"
528 ], 716 ],
@@ -532,7 +720,6 @@
532 "tags": [ 720 "tags": [
533 "users" 721 "users"
534 ], 722 ],
535 "summary": "Update country code of session user.",
536 "parameters": [ 723 "parameters": [
537 { 724 {
538 "type": "string", 725 "type": "string",
@@ -553,19 +740,7 @@
553 "200": { 740 "200": {
554 "description": "OK", 741 "description": "OK",
555 "schema": { 742 "schema": {
556 "allOf": [ 743 "$ref": "#/definitions/models.Response"
557 {
558 "$ref": "#/definitions/models.Response"
559 },
560 {
561 "type": "object",
562 "properties": {
563 "data": {
564 "$ref": "#/definitions/models.ProfileResponse"
565 }
566 }
567 }
568 ]
569 } 744 }
570 }, 745 },
571 "400": { 746 "400": {
@@ -583,6 +758,7 @@
583 } 758 }
584 }, 759 },
585 "post": { 760 "post": {
761 "description": "Update profile page of session user.",
586 "consumes": [ 762 "consumes": [
587 "application/json" 763 "application/json"
588 ], 764 ],
@@ -592,7 +768,6 @@
592 "tags": [ 768 "tags": [
593 "users" 769 "users"
594 ], 770 ],
595 "summary": "Update profile page of session user.",
596 "parameters": [ 771 "parameters": [
597 { 772 {
598 "type": "string", 773 "type": "string",
@@ -636,15 +811,60 @@
636 } 811 }
637 } 812 }
638 }, 813 },
814 "/rankings": {
815 "get": {
816 "description": "Get rankings of every player.",
817 "produces": [
818 "application/json"
819 ],
820 "tags": [
821 "rankings"
822 ],
823 "responses": {
824 "200": {
825 "description": "OK",
826 "schema": {
827 "allOf": [
828 {
829 "$ref": "#/definitions/models.Response"
830 },
831 {
832 "type": "object",
833 "properties": {
834 "data": {
835 "$ref": "#/definitions/models.RankingsResponse"
836 }
837 }
838 }
839 ]
840 }
841 },
842 "400": {
843 "description": "Bad Request",
844 "schema": {
845 "$ref": "#/definitions/models.Response"
846 }
847 }
848 }
849 }
850 },
639 "/search": { 851 "/search": {
640 "get": { 852 "get": {
853 "description": "Get all user and map data matching to the query.",
641 "produces": [ 854 "produces": [
642 "application/json" 855 "application/json"
643 ], 856 ],
644 "tags": [ 857 "tags": [
645 "search" 858 "search"
646 ], 859 ],
647 "summary": "Get all user and map data.", 860 "parameters": [
861 {
862 "type": "string",
863 "description": "Search user or map name.",
864 "name": "q",
865 "in": "query"
866 }
867 ],
648 "responses": { 868 "responses": {
649 "200": { 869 "200": {
650 "description": "OK", 870 "description": "OK",
@@ -675,13 +895,13 @@
675 }, 895 },
676 "/token": { 896 "/token": {
677 "get": { 897 "get": {
898 "description": "Gets the token cookie value from the user.",
678 "produces": [ 899 "produces": [
679 "application/json" 900 "application/json"
680 ], 901 ],
681 "tags": [ 902 "tags": [
682 "auth" 903 "auth"
683 ], 904 ],
684 "summary": "Gets the token cookie value from the user.",
685 "responses": { 905 "responses": {
686 "200": { 906 "200": {
687 "description": "OK", 907 "description": "OK",
@@ -710,13 +930,13 @@
710 } 930 }
711 }, 931 },
712 "delete": { 932 "delete": {
933 "description": "Deletes the token cookie from the user.",
713 "produces": [ 934 "produces": [
714 "application/json" 935 "application/json"
715 ], 936 ],
716 "tags": [ 937 "tags": [
717 "auth" 938 "auth"
718 ], 939 ],
719 "summary": "Deletes the token cookie from the user.",
720 "responses": { 940 "responses": {
721 "200": { 941 "200": {
722 "description": "OK", 942 "description": "OK",
@@ -747,6 +967,7 @@
747 }, 967 },
748 "/users/{id}": { 968 "/users/{id}": {
749 "get": { 969 "get": {
970 "description": "Get profile page of another user.",
750 "consumes": [ 971 "consumes": [
751 "application/json" 972 "application/json"
752 ], 973 ],
@@ -756,7 +977,6 @@
756 "tags": [ 977 "tags": [
757 "users" 978 "users"
758 ], 979 ],
759 "summary": "Get profile page of another user.",
760 "parameters": [ 980 "parameters": [
761 { 981 {
762 "type": "integer", 982 "type": "integer",
@@ -802,6 +1022,17 @@
802 } 1022 }
803 }, 1023 },
804 "definitions": { 1024 "definitions": {
1025 "models.Category": {
1026 "type": "object",
1027 "properties": {
1028 "id": {
1029 "type": "integer"
1030 },
1031 "name": {
1032 "type": "string"
1033 }
1034 }
1035 },
805 "models.Chapter": { 1036 "models.Chapter": {
806 "type": "object", 1037 "type": "object",
807 "properties": { 1038 "properties": {
@@ -841,12 +1072,97 @@
841 } 1072 }
842 } 1073 }
843 }, 1074 },
1075 "models.CreateMapSummaryRequest": {
1076 "type": "object",
1077 "required": [
1078 "category_id",
1079 "description",
1080 "record_date",
1081 "score_count",
1082 "user_name"
1083 ],
1084 "properties": {
1085 "category_id": {
1086 "type": "integer"
1087 },
1088 "description": {
1089 "type": "string"
1090 },
1091 "record_date": {
1092 "type": "string"
1093 },
1094 "score_count": {
1095 "type": "integer"
1096 },
1097 "showcase": {
1098 "type": "string"
1099 },
1100 "user_name": {
1101 "type": "string"
1102 }
1103 }
1104 },
1105 "models.DeleteMapSummaryRequest": {
1106 "type": "object",
1107 "required": [
1108 "route_id"
1109 ],
1110 "properties": {
1111 "route_id": {
1112 "type": "integer"
1113 }
1114 }
1115 },
1116 "models.EditMapImageRequest": {
1117 "type": "object",
1118 "required": [
1119 "image"
1120 ],
1121 "properties": {
1122 "image": {
1123 "type": "string"
1124 }
1125 }
1126 },
1127 "models.EditMapSummaryRequest": {
1128 "type": "object",
1129 "required": [
1130 "description",
1131 "record_date",
1132 "route_id",
1133 "score_count",
1134 "user_name"
1135 ],
1136 "properties": {
1137 "description": {
1138 "type": "string"
1139 },
1140 "record_date": {
1141 "type": "string"
1142 },
1143 "route_id": {
1144 "type": "integer"
1145 },
1146 "score_count": {
1147 "type": "integer"
1148 },
1149 "showcase": {
1150 "type": "string"
1151 },
1152 "user_name": {
1153 "type": "string"
1154 }
1155 }
1156 },
844 "models.Game": { 1157 "models.Game": {
845 "type": "object", 1158 "type": "object",
846 "properties": { 1159 "properties": {
847 "id": { 1160 "id": {
848 "type": "integer" 1161 "type": "integer"
849 }, 1162 },
1163 "is_coop": {
1164 "type": "boolean"
1165 },
850 "name": { 1166 "name": {
851 "type": "string" 1167 "type": "string"
852 } 1168 }
@@ -866,32 +1182,20 @@
866 "chapter_name": { 1182 "chapter_name": {
867 "type": "string" 1183 "type": "string"
868 }, 1184 },
869 "data": {},
870 "game_name": { 1185 "game_name": {
871 "type": "string" 1186 "type": "string"
872 }, 1187 },
873 "id": { 1188 "id": {
874 "type": "integer" 1189 "type": "integer"
875 }, 1190 },
876 "map_name": { 1191 "image": {
877 "type": "string" 1192 "type": "string"
878 }
879 }
880 },
881 "models.MapCategoryScores": {
882 "type": "object",
883 "properties": {
884 "any": {
885 "type": "integer"
886 }, 1193 },
887 "cm": { 1194 "is_coop": {
888 "type": "integer" 1195 "type": "boolean"
889 },
890 "inbounds_sla": {
891 "type": "integer"
892 }, 1196 },
893 "no_sla": { 1197 "map_name": {
894 "type": "integer" 1198 "type": "string"
895 } 1199 }
896 } 1200 }
897 }, 1201 },
@@ -915,6 +1219,29 @@
915 "records": {} 1219 "records": {}
916 } 1220 }
917 }, 1221 },
1222 "models.MapRoute": {
1223 "type": "object",
1224 "properties": {
1225 "category": {
1226 "$ref": "#/definitions/models.Category"
1227 },
1228 "description": {
1229 "type": "string"
1230 },
1231 "history": {
1232 "$ref": "#/definitions/models.MapHistory"
1233 },
1234 "rating": {
1235 "type": "number"
1236 },
1237 "route_id": {
1238 "type": "integer"
1239 },
1240 "showcase": {
1241 "type": "string"
1242 }
1243 }
1244 },
918 "models.MapShort": { 1245 "models.MapShort": {
919 "type": "object", 1246 "type": "object",
920 "properties": { 1247 "properties": {
@@ -929,29 +1256,22 @@
929 "models.MapSummary": { 1256 "models.MapSummary": {
930 "type": "object", 1257 "type": "object",
931 "properties": { 1258 "properties": {
932 "category_scores": { 1259 "routes": {
933 "$ref": "#/definitions/models.MapCategoryScores"
934 },
935 "description": {
936 "type": "string"
937 },
938 "history": {
939 "type": "array",
940 "items": {
941 "$ref": "#/definitions/models.MapHistory"
942 }
943 },
944 "rating": {
945 "type": "number"
946 },
947 "routers": {
948 "type": "array", 1260 "type": "array",
949 "items": { 1261 "items": {
950 "type": "string" 1262 "$ref": "#/definitions/models.MapRoute"
951 } 1263 }
1264 }
1265 }
1266 },
1267 "models.MapSummaryResponse": {
1268 "type": "object",
1269 "properties": {
1270 "map": {
1271 "$ref": "#/definitions/models.Map"
952 }, 1272 },
953 "showcase": { 1273 "summary": {
954 "type": "string" 1274 "$ref": "#/definitions/models.MapSummary"
955 } 1275 }
956 } 1276 }
957 }, 1277 },
@@ -1004,21 +1324,9 @@
1004 } 1324 }
1005 } 1325 }
1006 }, 1326 },
1007 "models.RecordRequest": { 1327 "models.RecordResponse": {
1008 "type": "object", 1328 "type": "object",
1009 "required": [
1010 "is_partner_orange",
1011 "partner_id",
1012 "score_count",
1013 "score_time"
1014 ],
1015 "properties": { 1329 "properties": {
1016 "is_partner_orange": {
1017 "type": "boolean"
1018 },
1019 "partner_id": {
1020 "type": "string"
1021 },
1022 "score_count": { 1330 "score_count": {
1023 "type": "integer" 1331 "type": "integer"
1024 }, 1332 },
@@ -1054,29 +1362,13 @@
1054 "maps": { 1362 "maps": {
1055 "type": "array", 1363 "type": "array",
1056 "items": { 1364 "items": {
1057 "type": "object", 1365 "$ref": "#/definitions/models.MapShort"
1058 "properties": {
1059 "id": {
1060 "type": "integer"
1061 },
1062 "name": {
1063 "type": "string"
1064 }
1065 }
1066 } 1366 }
1067 }, 1367 },
1068 "players": { 1368 "players": {
1069 "type": "array", 1369 "type": "array",
1070 "items": { 1370 "items": {
1071 "type": "object", 1371 "$ref": "#/definitions/models.UserShort"
1072 "properties": {
1073 "steam_id": {
1074 "type": "string"
1075 },
1076 "user_name": {
1077 "type": "string"
1078 }
1079 }
1080 } 1372 }
1081 } 1373 }
1082 } 1374 }
@@ -1094,6 +1386,17 @@
1094 "type": "string" 1386 "type": "string"
1095 } 1387 }
1096 } 1388 }
1389 },
1390 "models.UserShort": {
1391 "type": "object",
1392 "properties": {
1393 "steam_id": {
1394 "type": "string"
1395 },
1396 "user_name": {
1397 "type": "string"
1398 }
1399 }
1097 } 1400 }
1098 } 1401 }
1099} \ No newline at end of file 1402} \ No newline at end of file