· 5 years ago · Aug 12, 2020, 11:56 AM
1{
2 "openapi": "3.0.1",
3 "info": {
4 "title": "Lolesports Api",
5 "description": "Unofficial documentation to the lolesports Api\n\n# Authentication\n\n<!-- ReDoc-Inject: <security-definitions> -->",
6 "version": "1.0.0-alpha-1"
7 },
8 "tags": [
9 {
10 "name": "leagues",
11 "description": "Get information about a league, the standings and its various tournaments.\n"
12 },
13 {
14 "name": "events",
15 "description": "Get information about ongoing, completed or upcoming events.\n"
16 },
17 {
18 "name": "teams",
19 "description": "Get information about a team and its roster.\n"
20 },
21 {
22 "name": "match details",
23 "description": "Get the full match details of a game either live or after it has occured.\n"
24 },
25 {
26 "name": "highlander",
27 "description": "These are the old api endpoints.\n"
28 }
29 ],
30 "x-tagGroups": [
31 {
32 "name": "Rel Api",
33 "tags": [
34 "leagues",
35 "events",
36 "teams",
37 "match details"
38 ]
39 },
40 {
41 "name": "Highlander Api",
42 "tags": [
43 "highlander"
44 ]
45 }
46 ],
47 "paths": {
48 "/getLeagues": {
49 "get": {
50 "operationId": "getLeagues",
51 "parameters": [
52 {
53 "$ref": "#/components/parameters/hl"
54 }
55 ],
56 "tags": [
57 "leagues"
58 ],
59 "responses": {
60 "200": {
61 "description": "Successful request",
62 "content": {
63 "application/json": {
64 "schema": {
65 "type": "object",
66 "additionalProperties": false,
67 "required": [
68 "data"
69 ],
70 "properties": {
71 "data": {
72 "type": "object",
73 "additionalProperties": false,
74 "required": [
75 "leagues"
76 ],
77 "properties": {
78 "leagues": {
79 "type": "array",
80 "items": {
81 "allOf": [
82 {
83 "$ref": "#/components/schemas/extendedLeague"
84 },
85 {
86 "type": "object",
87 "required": [
88 "region"
89 ],
90 "additionalProperties": false,
91 "properties": {
92 "region": {
93 "description": "Indicates which type of tournament the league is. Whether\ninternational or a regional tournament. The region name is\ngiven.\n",
94 "type": "string"
95 }
96 }
97 }
98 ]
99 }
100 }
101 }
102 }
103 }
104 }
105 }
106 }
107 }
108 },
109 "security": [
110 {
111 "apiKeyAuth": []
112 }
113 ],
114 "servers": [
115 {
116 "url": "https://esports-api.lolesports.com/persisted/gw"
117 },
118 {
119 "url": "https://prod-relapi.ewp.gg/persisted/gw"
120 }
121 ]
122 }
123 },
124 "/getSchedule": {
125 "get": {
126 "operationId": "getSchedule",
127 "parameters": [
128 {
129 "$ref": "#/components/parameters/hl"
130 },
131 {
132 "$ref": "#/components/parameters/leagueIds"
133 },
134 {
135 "$ref": "#/components/parameters/pageToken"
136 }
137 ],
138 "tags": [
139 "events"
140 ],
141 "responses": {
142 "200": {
143 "description": "Successful request",
144 "content": {
145 "application/json": {
146 "schema": {
147 "type": "object",
148 "additionalProperties": false,
149 "required": [
150 "data"
151 ],
152 "properties": {
153 "data": {
154 "type": "object",
155 "additionalProperties": false,
156 "required": [
157 "schedule"
158 ],
159 "properties": {
160 "schedule": {
161 "type": "object",
162 "additionalProperties": false,
163 "required": [
164 "updated",
165 "pages",
166 "events"
167 ],
168 "properties": {
169 "updated": {
170 "description": "The time the data presented was last updated",
171 "type": "string",
172 "format": "date-time"
173 },
174 "pages": {
175 "type": "object",
176 "additionalProperties": false,
177 "required": [
178 "older",
179 "newer"
180 ],
181 "properties": {
182 "older": {
183 "$ref": "#/components/schemas/pageToken"
184 },
185 "newer": {
186 "$ref": "#/components/schemas/pageToken"
187 }
188 }
189 },
190 "events": {
191 "type": "array",
192 "items": {
193 "allOf": [
194 {
195 "$ref": "#/components/schemas/extendedEvent"
196 },
197 {
198 "type": "object",
199 "additionalProperties": false,
200 "required": [
201 "league",
202 "match"
203 ],
204 "properties": {
205 "league": {
206 "$ref": "#/components/schemas/baseLeague"
207 },
208 "match": {
209 "type": "object",
210 "additionalProperties": false,
211 "required": [
212 "teams"
213 ],
214 "properties": {
215 "teams": {
216 "type": "array",
217 "items": {
218 "type": "object",
219 "additionalProperties": false,
220 "required": [
221 "record",
222 "result"
223 ],
224 "properties": {
225 "record": {
226 "$ref": "#/components/schemas/record"
227 },
228 "result": {
229 "type": "object",
230 "additionalProperties": false,
231 "required": [
232 "outcome"
233 ],
234 "properties": {
235 "outcome": {
236 "$ref": "#/components/schemas/outcome"
237 }
238 }
239 }
240 }
241 }
242 }
243 }
244 }
245 }
246 }
247 ]
248 }
249 }
250 }
251 }
252 }
253 }
254 }
255 }
256 }
257 }
258 }
259 },
260 "security": [
261 {
262 "apiKeyAuth": []
263 }
264 ],
265 "servers": [
266 {
267 "url": "https://esports-api.lolesports.com/persisted/gw"
268 },
269 {
270 "url": "https://prod-relapi.ewp.gg/persisted/gw"
271 }
272 ]
273 }
274 },
275 "/getLive": {
276 "get": {
277 "operationId": "getLive",
278 "parameters": [
279 {
280 "$ref": "#/components/parameters/hl"
281 }
282 ],
283 "tags": [
284 "events"
285 ],
286 "responses": {
287 "200": {
288 "description": "Successful request",
289 "content": {
290 "application/json": {
291 "schema": {
292 "type": "object",
293 "additionalProperties": false,
294 "required": [
295 "data"
296 ],
297 "properties": {
298 "data": {
299 "type": "object",
300 "additionalProperties": false,
301 "required": [
302 "schedule"
303 ],
304 "properties": {
305 "schedule": {
306 "type": "object",
307 "additionalProperties": false,
308 "required": [
309 "events"
310 ],
311 "properties": {
312 "events": {
313 "type": "array",
314 "description": "Array of event objects representing matches that are\ncurrently ongoing.\n\nThis will be null if no match is taking place at that\ntime\n",
315 "nullable": true,
316 "items": {
317 "allOf": [
318 {
319 "$ref": "#/components/schemas/extendedEvent"
320 },
321 {
322 "type": "object",
323 "additionalProperties": false,
324 "required": [
325 "id",
326 "league"
327 ],
328 "properties": {
329 "id": {
330 "type": "string"
331 },
332 "league": {
333 "$ref": "#/components/schemas/extendedLeague"
334 },
335 "match": {
336 "type": "object",
337 "additionalProperties": false,
338 "required": [
339 "teams"
340 ],
341 "properties": {
342 "teams": {
343 "type": "array",
344 "items": {
345 "type": "object",
346 "additionalProperties": false,
347 "required": [
348 "slug",
349 "record",
350 "result"
351 ],
352 "properties": {
353 "slug": {
354 "$ref": "#/components/schemas/teamSlug"
355 },
356 "record": {
357 "$ref": "#/components/schemas/record"
358 },
359 "result": {
360 "type": "object",
361 "additionalProperties": false,
362 "required": [
363 "outcome"
364 ],
365 "properties": {
366 "outcome": {
367 "$ref": "#/components/schemas/outcome"
368 }
369 }
370 }
371 }
372 }
373 }
374 }
375 }
376 }
377 }
378 ]
379 }
380 }
381 }
382 }
383 }
384 }
385 }
386 }
387 }
388 }
389 }
390 },
391 "security": [
392 {
393 "apiKeyAuth": []
394 }
395 ],
396 "servers": [
397 {
398 "url": "https://esports-api.lolesports.com/persisted/gw"
399 },
400 {
401 "url": "https://prod-relapi.ewp.gg/persisted/gw"
402 }
403 ]
404 }
405 },
406 "/getTournamentsForLeague": {
407 "get": {
408 "operationId": "getTournamentsForLeague",
409 "parameters": [
410 {
411 "$ref": "#/components/parameters/hl"
412 },
413 {
414 "$ref": "#/components/parameters/leagueId"
415 }
416 ],
417 "tags": [
418 "leagues"
419 ],
420 "responses": {
421 "200": {
422 "description": "Successful request",
423 "content": {
424 "application/json": {
425 "schema": {
426 "type": "object",
427 "additionalProperties": false,
428 "required": [
429 "data"
430 ],
431 "properties": {
432 "data": {
433 "type": "object",
434 "additionalProperties": false,
435 "required": [
436 "leagues"
437 ],
438 "properties": {
439 "leagues": {
440 "type": "array",
441 "description": "An array of league object(s) where each object contains an array of\ntournaments.\n",
442 "items": {
443 "type": "object",
444 "additionalProperties": false,
445 "required": [
446 "tournaments"
447 ],
448 "properties": {
449 "tournaments": {
450 "type": "array",
451 "description": "An array of tournament object(s) where each object describes a\nspecific tournament.\n",
452 "items": {
453 "$ref": "#/components/schemas/tournament"
454 }
455 }
456 }
457 }
458 }
459 }
460 }
461 }
462 }
463 }
464 }
465 }
466 },
467 "security": [
468 {
469 "apiKeyAuth": []
470 }
471 ],
472 "servers": [
473 {
474 "url": "https://esports-api.lolesports.com/persisted/gw"
475 },
476 {
477 "url": "https://prod-relapi.ewp.gg/persisted/gw"
478 }
479 ]
480 }
481 },
482 "/getStandings": {
483 "get": {
484 "operationId": "getStandings",
485 "parameters": [
486 {
487 "$ref": "#/components/parameters/hl"
488 },
489 {
490 "$ref": "#/components/parameters/tournamentIds"
491 }
492 ],
493 "tags": [
494 "leagues"
495 ],
496 "responses": {
497 "200": {
498 "description": "Successful request",
499 "content": {
500 "application/json": {
501 "schema": {
502 "type": "object",
503 "additionalProperties": false,
504 "required": [
505 "data"
506 ],
507 "properties": {
508 "data": {
509 "type": "object",
510 "additionalProperties": false,
511 "required": [
512 "standings"
513 ],
514 "properties": {
515 "standings": {
516 "type": "array",
517 "description": "Each object in the array contains details of each tournament requested.\n",
518 "items": {
519 "type": "object",
520 "additionalProperties": false,
521 "required": [
522 "stages"
523 ],
524 "properties": {
525 "stages": {
526 "type": "array",
527 "items": {
528 "$ref": "#/components/schemas/stage"
529 }
530 }
531 }
532 }
533 }
534 }
535 }
536 }
537 }
538 }
539 }
540 }
541 },
542 "security": [
543 {
544 "apiKeyAuth": []
545 }
546 ],
547 "servers": [
548 {
549 "url": "https://esports-api.lolesports.com/persisted/gw"
550 },
551 {
552 "url": "https://prod-relapi.ewp.gg/persisted/gw"
553 }
554 ]
555 }
556 },
557 "/getCompletedEvents": {
558 "get": {
559 "operationId": "getCompletedEvents",
560 "parameters": [
561 {
562 "$ref": "#/components/parameters/hl"
563 },
564 {
565 "$ref": "#/components/parameters/tournamentIds"
566 }
567 ],
568 "tags": [
569 "events"
570 ],
571 "responses": {
572 "200": {
573 "description": "Successful request",
574 "content": {
575 "application/json": {
576 "schema": {
577 "type": "object",
578 "additionalProperties": false,
579 "required": [
580 "data"
581 ],
582 "properties": {
583 "data": {
584 "type": "object",
585 "additionalProperties": false,
586 "required": [
587 "schedule"
588 ],
589 "properties": {
590 "schedule": {
591 "type": "object",
592 "additionalProperties": false,
593 "required": [
594 "events"
595 ],
596 "properties": {
597 "events": {
598 "type": "array",
599 "items": {
600 "allOf": [
601 {
602 "$ref": "#/components/schemas/simpleEvent"
603 },
604 {
605 "type": "object",
606 "additionalProperties": false,
607 "required": [
608 "games",
609 "match"
610 ],
611 "properties": {
612 "games": {
613 "type": "array",
614 "items": {
615 "$ref": "#/components/schemas/game"
616 }
617 },
618 "match": {
619 "type": "object",
620 "additionalProperties": false,
621 "required": [
622 "type"
623 ],
624 "properties": {
625 "type": {
626 "type": "string",
627 "enum": [
628 "normal"
629 ]
630 }
631 }
632 }
633 }
634 }
635 ]
636 }
637 }
638 }
639 }
640 }
641 }
642 }
643 }
644 }
645 }
646 }
647 },
648 "security": [
649 {
650 "apiKeyAuth": []
651 }
652 ],
653 "servers": [
654 {
655 "url": "https://esports-api.lolesports.com/persisted/gw"
656 },
657 {
658 "url": "https://prod-relapi.ewp.gg/persisted/gw"
659 }
660 ]
661 }
662 },
663 "/getEventDetails": {
664 "get": {
665 "operationId": "getEventDetails",
666 "parameters": [
667 {
668 "$ref": "#/components/parameters/hl"
669 },
670 {
671 "$ref": "#/components/parameters/id"
672 }
673 ],
674 "tags": [
675 "events"
676 ],
677 "responses": {
678 "200": {
679 "description": "Succesful request",
680 "content": {
681 "application/json": {
682 "schema": {
683 "type": "object",
684 "additionalProperties": false,
685 "required": [
686 "data"
687 ],
688 "properties": {
689 "data": {
690 "type": "object",
691 "additionalProperties": false,
692 "required": [
693 "event"
694 ],
695 "properties": {
696 "event": {
697 "allOf": [
698 {
699 "$ref": "#/components/schemas/baseEvent"
700 },
701 {
702 "type": "object",
703 "additionalProperties": false,
704 "required": [
705 "id",
706 "type",
707 "league",
708 "match",
709 "streams"
710 ],
711 "properties": {
712 "id": {
713 "type": "string"
714 },
715 "type": {
716 "$ref": "#/components/schemas/eventType"
717 },
718 "league": {
719 "$ref": "#/components/schemas/simpleLeague"
720 },
721 "match": {
722 "type": "object",
723 "additionalProperties": false,
724 "required": [
725 "games",
726 "strategy",
727 "teams"
728 ],
729 "properties": {
730 "games": {
731 "type": "array",
732 "items": {
733 "$ref": "#/components/schemas/extendedGame"
734 }
735 },
736 "strategy": {
737 "$ref": "#/components/schemas/baseStrategy"
738 },
739 "teams": {
740 "type": "array",
741 "minItems": 2,
742 "maxItems": 2,
743 "items": {
744 "type": "object",
745 "additionalProperties": false,
746 "required": [
747 "id",
748 "result"
749 ],
750 "properties": {
751 "id": {
752 "$ref": "#/components/schemas/teamId"
753 },
754 "result": {
755 "$ref": "#/components/schemas/result"
756 }
757 }
758 }
759 }
760 }
761 },
762 "streams": {
763 "type": "array",
764 "nullable": true,
765 "description": "For a live match this will contain information about various streams,\nthe platforms they are on and the locale.\n\nOtherwise it will be null.\n",
766 "items": {
767 "$ref": "#/components/schemas/extendedVod"
768 }
769 }
770 }
771 }
772 ]
773 }
774 }
775 }
776 }
777 }
778 }
779 }
780 }
781 },
782 "security": [
783 {
784 "apiKeyAuth": []
785 }
786 ],
787 "servers": [
788 {
789 "url": "https://esports-api.lolesports.com/persisted/gw"
790 },
791 {
792 "url": "https://prod-relapi.ewp.gg/persisted/gw"
793 }
794 ]
795 }
796 },
797 "/getTeams": {
798 "get": {
799 "operationId": "getTeams",
800 "parameters": [
801 {
802 "$ref": "#/components/parameters/hl"
803 },
804 {
805 "$ref": "#/components/parameters/teamSlugs"
806 }
807 ],
808 "tags": [
809 "teams"
810 ],
811 "responses": {
812 "200": {
813 "description": "Successful request",
814 "content": {
815 "application/json": {
816 "schema": {
817 "type": "object",
818 "additionalProperties": false,
819 "required": [
820 "data"
821 ],
822 "properties": {
823 "data": {
824 "type": "object",
825 "additionalProperties": false,
826 "required": [
827 "teams"
828 ],
829 "properties": {
830 "teams": {
831 "type": "array",
832 "items": {
833 "$ref": "#/components/schemas/extendedTeam"
834 }
835 }
836 }
837 }
838 }
839 }
840 }
841 }
842 }
843 },
844 "security": [
845 {
846 "apiKeyAuth": []
847 }
848 ],
849 "servers": [
850 {
851 "url": "https://esports-api.lolesports.com/persisted/gw"
852 },
853 {
854 "url": "https://prod-relapi.ewp.gg/persisted/gw"
855 }
856 ]
857 }
858 },
859 "/getGames": {
860 "get": {
861 "operationId": "getGames",
862 "parameters": [
863 {
864 "$ref": "#/components/parameters/hl"
865 },
866 {
867 "$ref": "#/components/parameters/gameIds"
868 }
869 ],
870 "tags": [
871 "events"
872 ],
873 "responses": {
874 "200": {
875 "description": "Successful request",
876 "content": {
877 "application/json": {
878 "schema": {
879 "type": "object",
880 "additionalProperties": false,
881 "required": [
882 "data"
883 ],
884 "properties": {
885 "data": {
886 "type": "object",
887 "additionalProperties": false,
888 "required": [
889 "games"
890 ],
891 "properties": {
892 "games": {
893 "type": "array",
894 "items": {
895 "$ref": "#/components/schemas/simpleGame"
896 }
897 }
898 }
899 }
900 }
901 }
902 }
903 }
904 }
905 },
906 "security": [
907 {
908 "apiKeyAuth": []
909 }
910 ],
911 "servers": [
912 {
913 "url": "https://esports-api.lolesports.com/persisted/gw"
914 },
915 {
916 "url": "https://prod-relapi.ewp.gg/persisted/gw"
917 }
918 ]
919 }
920 },
921 "/window/{gameId}": {
922 "get": {
923 "operationId": "getWindow",
924 "parameters": [
925 {
926 "$ref": "#/components/parameters/pathGameId"
927 },
928 {
929 "$ref": "#/components/parameters/startingTime"
930 }
931 ],
932 "tags": [
933 "match details"
934 ],
935 "responses": {
936 "200": {
937 "description": "Successful request",
938 "content": {
939 "application/json": {
940 "schema": {
941 "$ref": "#/components/schemas/window"
942 }
943 }
944 }
945 }
946 },
947 "servers": [
948 {
949 "url": "https://feed.lolesports.com/livestats/v1"
950 }
951 ]
952 }
953 },
954 "/details/{gameId}": {
955 "get": {
956 "operationId": "getDetails",
957 "parameters": [
958 {
959 "$ref": "#/components/parameters/pathGameId"
960 },
961 {
962 "$ref": "#/components/parameters/startingTime"
963 },
964 {
965 "name": "participantIds",
966 "in": "query",
967 "description": "A list of the participant Ids separated by underscores and not commas\n",
968 "schema": {
969 "type": "string",
970 "pattern": "^\\d{1,2}(?:_\\d{1,2}){0,9}$"
971 }
972 }
973 ],
974 "tags": [
975 "match details"
976 ],
977 "responses": {
978 "200": {
979 "description": "Successful request",
980 "content": {
981 "application/json": {
982 "schema": {
983 "type": "object",
984 "additionalProperties": false,
985 "required": [
986 "frames"
987 ],
988 "properties": {
989 "frames": {
990 "type": "array",
991 "items": {
992 "$ref": "#/components/schemas/detailsFrame"
993 }
994 }
995 }
996 }
997 }
998 }
999 }
1000 },
1001 "servers": [
1002 {
1003 "url": "https://feed.lolesports.com/livestats/v1"
1004 }
1005 ]
1006 }
1007 },
1008 "/navItems": {
1009 "get": {
1010 "operationId": "navItems",
1011 "tags": [
1012 "highlander"
1013 ],
1014 "responses": {
1015 "200": {
1016 "description": "Successful request",
1017 "content": {
1018 "application/json": {
1019 "schema": {
1020 "type": "object",
1021 "additionalProperties": false,
1022 "required": [
1023 "navItems",
1024 "leagues"
1025 ],
1026 "properties": {
1027 "navItems": {
1028 "type": "array",
1029 "items": {
1030 "$ref": "#/components/schemas/navItem"
1031 }
1032 },
1033 "leagues": {
1034 "type": "array",
1035 "items": {
1036 "$ref": "#/components/schemas/highlanderLeague"
1037 }
1038 }
1039 }
1040 }
1041 }
1042 }
1043 }
1044 },
1045 "servers": [
1046 {
1047 "url": "https://api.lolesports.com/api/v1"
1048 }
1049 ]
1050 }
1051 },
1052 "/videos": {
1053 "get": {
1054 "description": "This endpoint returns details about esports vods on YouTube.\n\nThe data returned by this endpoint is fairly large (more than 5MB) since\nit includes vods from 2015 up to (at the time of writing this) June 2019\nand it will continue growing.\n\nDo consider this when dealing with clients (like mobile phones) where\nbandwidth and memory may be scarce.\n\nIt is highly advised that you cache the data from this endpoint.\n",
1055 "operationId": "videos",
1056 "tags": [
1057 "highlander"
1058 ],
1059 "responses": {
1060 "200": {
1061 "description": "Successful request",
1062 "content": {
1063 "application/json": {
1064 "schema": {
1065 "type": "object",
1066 "additionalProperties": false,
1067 "required": [
1068 "videos"
1069 ],
1070 "properties": {
1071 "videos": {
1072 "type": "array",
1073 "items": {
1074 "$ref": "#/components/schemas/video"
1075 }
1076 }
1077 }
1078 }
1079 }
1080 }
1081 }
1082 },
1083 "servers": [
1084 {
1085 "url": "https://api.lolesports.com/api/v2"
1086 }
1087 ]
1088 }
1089 },
1090 "/highlanderTournaments": {
1091 "get": {
1092 "operationId": "highlanderTournaments",
1093 "tags": [
1094 "highlander"
1095 ],
1096 "parameters": [
1097 {
1098 "$ref": "#/components/parameters/league"
1099 }
1100 ],
1101 "description": "If a league does not have highlanderTournament objects, the API will return 404\n",
1102 "responses": {
1103 "200": {
1104 "description": "Successful request",
1105 "content": {
1106 "application/json": {
1107 "schema": {
1108 "$ref": "#/components/schemas/highlanderTournaments"
1109 }
1110 }
1111 }
1112 },
1113 "404": {
1114 "description": "Not Found",
1115 "content": {
1116 "application/json": {
1117 "schema": {
1118 "type": "object",
1119 "required": [
1120 "error"
1121 ],
1122 "properties": {
1123 "error": {
1124 "type": "object",
1125 "required": [
1126 "statusCode",
1127 "message"
1128 ],
1129 "properties": {
1130 "statusCode": {
1131 "type": "integer",
1132 "enum": [
1133 404
1134 ]
1135 },
1136 "message": {
1137 "type": "string",
1138 "pattern": "^404 - http:\\/\\/highlander\\.lolesports\\.com\\/v1\\/leagues\\/\\d+$"
1139 }
1140 }
1141 }
1142 }
1143 }
1144 }
1145 }
1146 }
1147 },
1148 "servers": [
1149 {
1150 "url": "https://api.lolesports.com/api/v2"
1151 }
1152 ]
1153 }
1154 },
1155 "/leagues": {
1156 "get": {
1157 "operationId": "leagues",
1158 "tags": [
1159 "highlander"
1160 ],
1161 "parameters": [
1162 {
1163 "name": "query",
1164 "in": "query",
1165 "description": "'This endpoint requires either the id or the slug to be passed. If both are present then only the first\none will be considered.\n\n_Due to a limitation in the OpenApi specification it is not possible to show the mutual exclusive nature\nthat the query parameters in this endpoint require. The schema below is as close as a representation I\ncould get in expressing the nature of the query parameters._\n\nCheck the examples below to help better understand the query parameters needed.\n\n**Example 1**\n\n`https://api.lolesports.com/api/v1/leagues?id=3`\n\nThis will return the details for **LEC**.\n\n**Example 2**\n\n`https://api.lolesports.com/api/v1/leagues?slug=worlds`\n\nThis will return the details for **Worlds**\n\n**Example 3**\n\n`https://api.lolesports.com/api/v1/leagues?id=3&slug=worlds`\n\nIn such a scenario where both query parameters are used only the first will be considered, hence it will\nonly return the details for **LEC**.\n\n**Example 4**\n\n`https://api.lolesports.com/api/v1/leagues`\n\nThis is not valid. At least one of the two query parameters (id or slug) is required.'\n",
1166 "required": true,
1167 "schema": {
1168 "type": "object",
1169 "oneOf": [
1170 {
1171 "type": "object",
1172 "required": [
1173 "id"
1174 ],
1175 "properties": {
1176 "id": {
1177 "type": "integer"
1178 }
1179 },
1180 "additionalProperties": false
1181 },
1182 {
1183 "type": "object",
1184 "required": [
1185 "slug"
1186 ],
1187 "properties": {
1188 "slug": {
1189 "type": "string"
1190 }
1191 },
1192 "additionalProperties": false
1193 }
1194 ]
1195 }
1196 }
1197 ],
1198 "responses": {
1199 "200": {
1200 "description": "Successful request",
1201 "content": {
1202 "application/json": {
1203 "schema": {
1204 "type": "object",
1205 "additionalProperties": false,
1206 "required": [
1207 "leagues"
1208 ],
1209 "properties": {
1210 "leagues": {
1211 "type": "array",
1212 "description": "This array contains information about the league retrieved.\n",
1213 "minItems": 1,
1214 "maxItems": 1,
1215 "items": {
1216 "$ref": "#/components/schemas/highlanderLeague"
1217 }
1218 },
1219 "highlanderTournaments": {
1220 "$ref": "#/components/schemas/highlanderTournaments"
1221 },
1222 "highlanderRecords": {
1223 "$ref": "#/components/schemas/highlanderRecords"
1224 },
1225 "teams": {
1226 "$ref": "#/components/schemas/highlanderTeams"
1227 },
1228 "players": {
1229 "$ref": "#/components/schemas/highlanderPlayers"
1230 }
1231 }
1232 }
1233 }
1234 }
1235 },
1236 "404": {
1237 "description": "Not Found",
1238 "content": {
1239 "application/json": {
1240 "schema": {
1241 "type": "object",
1242 "additionalProperties": false,
1243 "properties": {
1244 "error": {
1245 "type": "string",
1246 "enum": [
1247 "Invalid Input Error"
1248 ]
1249 }
1250 }
1251 }
1252 }
1253 }
1254 }
1255 },
1256 "servers": [
1257 {
1258 "url": "https://api.lolesports.com/api/v1"
1259 }
1260 ]
1261 }
1262 },
1263 "/scheduleItems": {
1264 "get": {
1265 "operationId": "scheduleItems",
1266 "tags": [
1267 "highlander"
1268 ],
1269 "parameters": [
1270 {
1271 "$ref": "#/components/parameters/highlanderLeagueId"
1272 }
1273 ],
1274 "responses": {
1275 "200": {
1276 "description": "Successful request",
1277 "content": {
1278 "application/json": {
1279 "schema": {
1280 "type": "object",
1281 "additionalProperties": false,
1282 "properties": {
1283 "scheduleItems": {
1284 "type": "array",
1285 "minItems": 0,
1286 "items": {
1287 "$ref": "#/components/schemas/scheduleItem"
1288 }
1289 },
1290 "highlanderTournaments": {
1291 "$ref": "#/components/schemas/highlanderTournaments"
1292 },
1293 "teams": {
1294 "$ref": "#/components/schemas/highlanderTeams"
1295 },
1296 "highlanderRecords": {
1297 "$ref": "#/components/schemas/highlanderRecords"
1298 },
1299 "players": {
1300 "$ref": "#/components/schemas/highlanderPlayers"
1301 }
1302 }
1303 }
1304 }
1305 }
1306 }
1307 },
1308 "servers": [
1309 {
1310 "url": "https://api.lolesports.com/api/v1"
1311 }
1312 ]
1313 }
1314 },
1315 "/teams": {
1316 "get": {
1317 "operationId": "teams",
1318 "tags": [
1319 "highlander"
1320 ],
1321 "description": "If the `teamStatsSummaries`, `teamRosterStats` and `teamStatsHistories` keys are not present,\nthen the team did not take part in that particular tournament.\n",
1322 "parameters": [
1323 {
1324 "$ref": "#/components/parameters/teamSlug"
1325 },
1326 {
1327 "$ref": "#/components/parameters/highlanderTournamentId"
1328 }
1329 ],
1330 "responses": {
1331 "200": {
1332 "description": "Successful request",
1333 "content": {
1334 "application/json": {
1335 "schema": {
1336 "type": "object",
1337 "additionalProperties": false,
1338 "required": [
1339 "players",
1340 "highlanderTournaments",
1341 "scheduleItems",
1342 "teams"
1343 ],
1344 "properties": {
1345 "players": {
1346 "type": "array",
1347 "description": "Contains the players currently in the team.",
1348 "items": {
1349 "allOf": [
1350 {
1351 "$ref": "#/components/schemas/highlanderPlayer"
1352 },
1353 {
1354 "type": "object",
1355 "additionalProperties": false,
1356 "properties": {
1357 "teamRosterStat": {
1358 "type": "string",
1359 "pattern": "^urn:rg:lolesports:global:player:player:\\d+$"
1360 }
1361 }
1362 }
1363 ]
1364 }
1365 },
1366 "highlanderTournaments": {
1367 "$ref": "#/components/schemas/highlanderTournaments"
1368 },
1369 "scheduleItems": {
1370 "type": "array",
1371 "description": "Contains details about a few of the team's upcoming matches",
1372 "items": {
1373 "$ref": "#/components/schemas/scheduleItem"
1374 }
1375 },
1376 "teamStatsSummaries": {
1377 "type": "array",
1378 "minItems": 1,
1379 "maxItems": 1,
1380 "description": "Contains a summary of the team stats during that particular tournament.\n",
1381 "items": {
1382 "type": "object",
1383 "additionalProperties": false,
1384 "required": [
1385 "teamId",
1386 "kdaRatio",
1387 "kdaRatioRank",
1388 "averageWinLength",
1389 "averageWinLengthRank",
1390 "firstDragonKillRatio",
1391 "firstDragonKillRatioRank",
1392 "firstTowerRatio",
1393 "firstTowerRatioRank",
1394 "averageDamageByPosition"
1395 ],
1396 "properties": {
1397 "teamId": {
1398 "type": "string",
1399 "pattern": "^urn:rg:lolesports:global:team:team:\\d+$",
1400 "description": "Contains the team ID"
1401 },
1402 "kdaRatio": {
1403 "type": "number",
1404 "format": "double",
1405 "description": "The team's KDA Ratio"
1406 },
1407 "kdaRatioRank": {
1408 "type": "integer",
1409 "format": "int32",
1410 "description": "The position the team ranks at compared to other teams' KDA ratio\n"
1411 },
1412 "averageWinLength": {
1413 "type": "integer",
1414 "format": "int32",
1415 "description": "The average length of the team's wins in seconds.\n"
1416 },
1417 "averageWinLengthRank": {
1418 "type": "integer",
1419 "format": "int32",
1420 "description": "The position the team ranks at compared to other team's average win lengths.\n"
1421 },
1422 "firstDragonKillRatio": {
1423 "type": "number",
1424 "format": "double",
1425 "description": "The ratio of first dragons killed by this team compared to the total first dragons killed\nin this team's matches.\n"
1426 },
1427 "firstDragonKillRatioRank": {
1428 "type": "integer",
1429 "format": "int32",
1430 "description": "The position the teams ranks at compared to other team's first dragon kill ratio\n"
1431 },
1432 "firstTowerRatio": {
1433 "type": "number",
1434 "format": "double",
1435 "description": "The ratio of first tower secured by this team compared to the total first towers secured\nin this team's matches.\n"
1436 },
1437 "firstTowerRatioRank": {
1438 "type": "integer",
1439 "format": "int32",
1440 "description": "The position the teams ranks at compared to other team's first tower ratio.\n"
1441 },
1442 "averageDamageByPosition": {
1443 "type": "object",
1444 "additionalProperties": false,
1445 "description": "It is assumed that the values represent the damage dealt in thousands.\n",
1446 "properties": {
1447 "DUO_CARRY": {
1448 "type": "integer",
1449 "format": "int32"
1450 },
1451 "DUO_SUPPORT": {
1452 "type": "integer",
1453 "format": "int32"
1454 },
1455 "SOLO": {
1456 "type": "integer",
1457 "format": "int32"
1458 },
1459 "NONE": {
1460 "type": "integer",
1461 "format": "int32"
1462 },
1463 "DUO": {
1464 "type": "integer",
1465 "format": "int32"
1466 }
1467 }
1468 }
1469 }
1470 }
1471 },
1472 "teamRosterStats": {
1473 "type": "array",
1474 "description": "Contains stats of the players of the particular team who played in that tournament.\n",
1475 "items": {
1476 "type": "object",
1477 "additionalProperties": false,
1478 "required": [
1479 "playerId",
1480 "gamesPlayed",
1481 "averageAssists",
1482 "averageDeaths",
1483 "averageKillParticipation",
1484 "averageKills",
1485 "summonerName",
1486 "championIds"
1487 ],
1488 "properties": {
1489 "playerId": {
1490 "type": "string",
1491 "pattern": "^urn:rg:lolesports:global:player:player:\\d+$"
1492 },
1493 "gamesPlayed": {
1494 "type": "integer",
1495 "format": "int32"
1496 },
1497 "averageAssists": {
1498 "type": "integer",
1499 "format": "int32"
1500 },
1501 "averageDeaths": {
1502 "type": "number",
1503 "format": "double"
1504 },
1505 "averageKillParticipation": {
1506 "type": "number",
1507 "format": "double"
1508 },
1509 "averageKills": {
1510 "type": "number",
1511 "format": "double"
1512 },
1513 "summonerName": {
1514 "type": "string"
1515 },
1516 "championIds": {
1517 "type": "array",
1518 "minItems": 1,
1519 "maxItems": 3,
1520 "items": {
1521 "type": "integer",
1522 "format": "int32"
1523 }
1524 }
1525 }
1526 }
1527 },
1528 "teamStatsHistories": {
1529 "type": "array",
1530 "maxItems": 4,
1531 "description": "A contains stats of the team's previous 4 matches in that particular tournament.\n",
1532 "items": {
1533 "type": "object",
1534 "additionalProperties": false,
1535 "required": [
1536 "id",
1537 "timestamp",
1538 "assists",
1539 "deaths",
1540 "kills",
1541 "win",
1542 "championsIds",
1543 "match",
1544 "team",
1545 "opponent",
1546 "game"
1547 ],
1548 "properties": {
1549 "id": {
1550 "type": "string",
1551 "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}:\\d+$",
1552 "description": "Contains the game ID and the team ID."
1553 },
1554 "timestamp": {
1555 "type": "integer",
1556 "format": "int64",
1557 "description": "Unix timestamp in milliseconds of when the match started."
1558 },
1559 "assists": {
1560 "type": "integer",
1561 "format": "int32"
1562 },
1563 "kills": {
1564 "type": "integer",
1565 "format": "int32"
1566 },
1567 "win": {
1568 "type": "boolean",
1569 "enum": [
1570 true,
1571 false
1572 ]
1573 },
1574 "championIds": {
1575 "type": "array",
1576 "minItems": 5,
1577 "maxItems": 5,
1578 "items": {
1579 "type": "integer",
1580 "format": "int32"
1581 }
1582 },
1583 "match": {
1584 "type": "string",
1585 "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$",
1586 "description": "The match ID"
1587 },
1588 "team": {
1589 "type": "integer",
1590 "format": "int32",
1591 "description": "The team ID"
1592 },
1593 "opponent": {
1594 "type": "integer",
1595 "format": "int32",
1596 "description": "The opponent's team ID"
1597 },
1598 "game": {
1599 "type": "integer",
1600 "format": "int32",
1601 "description": "The game ID"
1602 }
1603 }
1604 }
1605 },
1606 "teams": {
1607 "$ref": "#/components/schemas/highlanderTeams"
1608 }
1609 }
1610 }
1611 }
1612 }
1613 }
1614 },
1615 "servers": [
1616 {
1617 "url": "https://api.lolesports.com/api/v1"
1618 }
1619 ]
1620 }
1621 },
1622 "/players": {
1623 "get": {
1624 "operationId": "players",
1625 "tags": [
1626 "highlander"
1627 ],
1628 "description": "If the `playerStatsSummaries` and `playerStatsHistories` keys are not present,\nthen the player did not take part in that particular tournament.\n",
1629 "parameters": [
1630 {
1631 "$ref": "#/components/parameters/playerSlug"
1632 },
1633 {
1634 "$ref": "#/components/parameters/highlanderTournamentId"
1635 }
1636 ],
1637 "responses": {
1638 "200": {
1639 "description": "Successful request",
1640 "content": {
1641 "application/json": {
1642 "schema": {
1643 "type": "object",
1644 "additionalProperties": false,
1645 "required": [
1646 "players",
1647 "highlanderTournaments",
1648 "scheduleItems",
1649 "teams"
1650 ],
1651 "properties": {
1652 "players": {
1653 "type": "array",
1654 "description": "Contains information about the player in question.\n\nIf `playerStatsSummary` and `playerStatsHistory` are missing then the player did not take part\nin the tournament specificed by the tournament ID in the url.\n",
1655 "minItems": 1,
1656 "maxItems": 1,
1657 "items": {
1658 "allOf": [
1659 {
1660 "$ref": "#/components/schemas/highlanderPlayer"
1661 },
1662 {
1663 "type": "object",
1664 "additionalProperties": false,
1665 "required": [
1666 "starterOnTeams",
1667 "subOnTeams",
1668 "teams",
1669 "photoInformation",
1670 "scheduleItems"
1671 ],
1672 "properties": {
1673 "starterOnTeams": {
1674 "type": "array",
1675 "description": "The IDs of the team(s) this player is/has been on the starting\nlineup\n",
1676 "items": {
1677 "type": "integer"
1678 }
1679 },
1680 "subOnTeams": {
1681 "type": "array",
1682 "description": "The IDs of the team(s) this player is/has been on as a sub player\n",
1683 "items": {
1684 "type": "integer"
1685 }
1686 },
1687 "teams": {
1688 "type": "array",
1689 "description": "A combination of the teamIDs in `starterOnTeams` and `subOnTeams`\n",
1690 "items": {
1691 "type": "integer"
1692 }
1693 },
1694 "photoInformation": {
1695 "type": "object",
1696 "additionalProperties": false,
1697 "required": [
1698 "width",
1699 "height",
1700 "type",
1701 "url",
1702 "transferred",
1703 "size",
1704 "time"
1705 ],
1706 "properties": {
1707 "width": {
1708 "type": "integer",
1709 "description": "The width of the image in pixels."
1710 },
1711 "height": {
1712 "type": "integer",
1713 "description": "The height of the image in pixels."
1714 },
1715 "type": {
1716 "type": "string",
1717 "description": "The image's file format."
1718 },
1719 "url": {
1720 "type": "string",
1721 "description": "URL to the player's photo."
1722 },
1723 "transferred": {
1724 "type": "integer"
1725 },
1726 "size": {
1727 "type": "integer",
1728 "description": "Size of the image in bytes"
1729 },
1730 "time": {
1731 "type": "float"
1732 }
1733 }
1734 },
1735 "scheduleItems": {
1736 "type": "array",
1737 "description": "Contains the ids to schedule items representing the player's/team's next matches.\n\nThis is regardless of the tournament ID passed in the url.\n",
1738 "maxItems": 4,
1739 "items": {
1740 "type": "string"
1741 }
1742 },
1743 "playerStatsSummary": {
1744 "type": "string",
1745 "pattern": "^urn:rg:lolesports:global:player:player:\\d+$"
1746 },
1747 "playerStatsHistory": {
1748 "type": "array",
1749 "description": "Contains the `playerStatsHistory` IDs, which are just the game ID of the match and the player\nID separated by a colon.\n\nContains the last 4 played matches in the specified tournament. The first ID is of the most\nrecently played match.\n",
1750 "maxItems": 4,
1751 "items": {
1752 "type": "string",
1753 "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}:\\d+$"
1754 }
1755 }
1756 }
1757 }
1758 ]
1759 }
1760 },
1761 "highlanderTournaments": {
1762 "type": "array",
1763 "description": "Contains the various tournaments the player has participated in.\n",
1764 "items": {
1765 "$ref": "#/components/schemas/highlanderTournament"
1766 }
1767 },
1768 "scheduleItems": {
1769 "type": "array",
1770 "maxItems": 4,
1771 "description": "Contains details about the next 4 matches the player's team is schedule to participate in.\n",
1772 "items": {
1773 "$ref": "#/components/schemas/matchScheduleItem"
1774 }
1775 },
1776 "teams": {
1777 "type": "array",
1778 "items": {
1779 "$ref": "#/components/schemas/highlanderTeam"
1780 }
1781 },
1782 "playerStatsSummaries": {
1783 "type": "array",
1784 "description": "The stats displayed here are for the player during the tournament specified in the url\n",
1785 "minItems": 1,
1786 "maxItems": 1,
1787 "items": {
1788 "type": "object",
1789 "additionalProperties": false,
1790 "required": [
1791 "playerId",
1792 "kdaRatio",
1793 "kdaRatioRank",
1794 "csPerTenMinutes",
1795 "csPerTenMinutesRank",
1796 "killParticipation",
1797 "killParticipationRank",
1798 "mostplayedchampions"
1799 ],
1800 "properties": {
1801 "playerId": {
1802 "type": "string",
1803 "pattern": "^urn:rg:lolesports:global:player:player:\\d+$"
1804 },
1805 "kdaRatio": {
1806 "type": "number",
1807 "format": "double"
1808 },
1809 "kdaRatioRank": {
1810 "type": "number",
1811 "format": "integer"
1812 },
1813 "csPerTenMinutes": {
1814 "type": "number",
1815 "format": "double"
1816 },
1817 "csPerTenMinutesRank": {
1818 "type": "number",
1819 "format": "integer"
1820 },
1821 "killParticipation": {
1822 "type": "number",
1823 "format": "double"
1824 },
1825 "killParticipationRank": {
1826 "type": "number"
1827 },
1828 "mostplayedchampions": {
1829 "type": "array",
1830 "maxItems": 3,
1831 "items": {
1832 "type": "object",
1833 "additionalProperties": false,
1834 "required": [
1835 "championId",
1836 "wins",
1837 "losses",
1838 "total",
1839 "kdaRatio"
1840 ],
1841 "properties": {
1842 "championId": {
1843 "type": "number",
1844 "format": "integer"
1845 },
1846 "wins": {
1847 "type": "number",
1848 "format": "integer"
1849 },
1850 "losses": {
1851 "type": "number",
1852 "format": "integer"
1853 },
1854 "total": {
1855 "type": "number",
1856 "format": "integer"
1857 },
1858 "kdaRatio": {
1859 "type": "number",
1860 "format": "double"
1861 }
1862 }
1863 }
1864 }
1865 }
1866 }
1867 },
1868 "playerStatsHistories": {
1869 "type": "array",
1870 "description": "Displays stats from the recently played matches in that particular tournaments.\nThe array starts with the most recently played match.\n",
1871 "maxItems": 4,
1872 "items": {
1873 "type": "object",
1874 "additionalProperties": false,
1875 "required": [
1876 "id",
1877 "playerId",
1878 "championId",
1879 "timestamp",
1880 "assists",
1881 "deaths",
1882 "kills",
1883 "csPerTenMinutes",
1884 "kdaRatio",
1885 "killParticipation",
1886 "win",
1887 "match",
1888 "team",
1889 "opponent",
1890 "game"
1891 ],
1892 "properties": {
1893 "id": {
1894 "type": "string",
1895 "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}:\\d+$"
1896 },
1897 "playerId": {
1898 "type": "string",
1899 "pattern": "^urn:rg:lolesports:global:player:player:\\d+$"
1900 },
1901 "championId": {
1902 "type": "number",
1903 "format": "integer"
1904 },
1905 "timestamp": {
1906 "type": "integer",
1907 "format": "int64",
1908 "description": "Unix timestamp in milliseconds of when the match started."
1909 },
1910 "assists": {
1911 "type": "number",
1912 "format": "integer"
1913 },
1914 "deaths": {
1915 "type": "number",
1916 "format": "integer"
1917 },
1918 "kills": {
1919 "type": "number",
1920 "format": "integer"
1921 },
1922 "csPerTenMinutes": {
1923 "type": "number",
1924 "format": "double"
1925 },
1926 "kdaRatio": {
1927 "type": "number",
1928 "format": "double"
1929 },
1930 "killParticipation": {
1931 "type": "number",
1932 "format": "double"
1933 },
1934 "win": {
1935 "type": "boolean",
1936 "enum": [
1937 true,
1938 false
1939 ]
1940 },
1941 "match": {
1942 "type": "string",
1943 "description": "The match ID",
1944 "format": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
1945 },
1946 "team": {
1947 "type": "number",
1948 "format": "integer",
1949 "description": "The team ID the player playes for."
1950 },
1951 "opponent": {
1952 "type": "number",
1953 "format": "integer",
1954 "description": "The opponent's team ID."
1955 },
1956 "game": {
1957 "type": "string",
1958 "description": "The game ID",
1959 "format": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
1960 }
1961 }
1962 }
1963 }
1964 }
1965 }
1966 }
1967 }
1968 }
1969 },
1970 "servers": [
1971 {
1972 "url": "https://api.lolesports.com/api/v1"
1973 }
1974 ]
1975 }
1976 }
1977 },
1978 "components": {
1979 "schemas": {
1980 "pageToken": {
1981 "description": "Base 64 encoded string used to determine the\nnext \"page\" of data to pull\n",
1982 "type": "string",
1983 "format": "byte",
1984 "nullable": true
1985 },
1986 "baseLeague": {
1987 "type": "object",
1988 "required": [
1989 "name",
1990 "slug"
1991 ],
1992 "additionalProperties": false,
1993 "properties": {
1994 "name": {
1995 "type": "string",
1996 "description": "The name of the league",
1997 "minLength": 1
1998 },
1999 "slug": {
2000 "type": "string",
2001 "description": "URL friendly version of the league's name",
2002 "minLength": 1
2003 }
2004 }
2005 },
2006 "simpleLeague": {
2007 "allOf": [
2008 {
2009 "$ref": "#/components/schemas/baseLeague"
2010 },
2011 {
2012 "type": "object",
2013 "additionalProperties": false,
2014 "required": [
2015 "id",
2016 "image"
2017 ],
2018 "properties": {
2019 "id": {
2020 "description": "The league's ID",
2021 "type": "string"
2022 },
2023 "image": {
2024 "description": "URL to an image of the League's logo",
2025 "type": "string",
2026 "minLength": 1
2027 }
2028 }
2029 }
2030 ]
2031 },
2032 "extendedLeague": {
2033 "allOf": [
2034 {
2035 "$ref": "#/components/schemas/simpleLeague"
2036 },
2037 {
2038 "type": "object",
2039 "additionalProperties": false,
2040 "required": [
2041 "priority"
2042 ],
2043 "properties": {
2044 "priority": {
2045 "description": "Unknown",
2046 "type": "integer"
2047 }
2048 }
2049 }
2050 ]
2051 },
2052 "highlanderLeague": {
2053 "allOf": [
2054 {
2055 "$ref": "#/components/schemas/baseLeague"
2056 },
2057 {
2058 "type": "object",
2059 "required": [
2060 "id",
2061 "guid",
2062 "region",
2063 "drupalId",
2064 "logoUrl",
2065 "createdAt",
2066 "updatedAt",
2067 "abouts",
2068 "names"
2069 ],
2070 "additionalProperties": false,
2071 "properties": {
2072 "id": {
2073 "description": "The league's ID",
2074 "type": "integer"
2075 },
2076 "guid": {
2077 "description": "The [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) for the league.\n",
2078 "type": "string"
2079 },
2080 "region": {
2081 "type": "string"
2082 },
2083 "drupalId": {
2084 "type": "integer",
2085 "nullable": true
2086 },
2087 "logoUrl": {
2088 "type": "string"
2089 },
2090 "createdAt": {
2091 "type": "string",
2092 "description": "The date and time when this entry was created.",
2093 "format": "date-time"
2094 },
2095 "updatedAt": {
2096 "type": "string",
2097 "description": "The date and time when this entry was last updated.",
2098 "format": "date-time"
2099 },
2100 "abouts": {
2101 "type": "object",
2102 "description": "Contains a description of the league translated in various languages.\n\nThe keys are presented in the format ([ISO 639-1](https://en.wikipedia.org/wiki/ISO_639-1)\nand [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))\n\n`{languageCode}_{countryCode}`\n\nThe value is a string containing\nhtml tags representing the description in that specific locale.\n",
2103 "minProperties": 0,
2104 "additionalProperties": {
2105 "type": "string"
2106 }
2107 },
2108 "names": {
2109 "type": "object",
2110 "description": "Contains the names of the league translated in various languages.\n\nThe keys are presented in the format ([ISO 639-1](https://en.wikipedia.org/wiki/ISO_639-1)\nand [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))\n\n`{languageCode}_{countryCode}`\n\nThe value is a string containing\nthe name of the league in that specific locale.\n",
2111 "minProperties": 0,
2112 "additionalProperties": {
2113 "type": "string"
2114 }
2115 },
2116 "tournaments": {
2117 "type": "array",
2118 "description": "An array containing the [UUIDs](https://en.wikipedia.org/wiki/Universally_unique_identifier)\nfor the tournaments in this league.\n",
2119 "items": {
2120 "type": "string",
2121 "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
2122 }
2123 }
2124 }
2125 }
2126 ]
2127 },
2128 "record": {
2129 "type": "object",
2130 "nullable": true,
2131 "description": "Describes the amount of wins and losses the team has incurred\nin a particular stage of the tournament specifically group stage\n\nFor knockout phase, each series is treated individually.\n\nThis object is null when the match is ongoing and it is in the\nknockout stage.\n",
2132 "additionalProperties": false,
2133 "required": [
2134 "losses",
2135 "wins"
2136 ],
2137 "properties": {
2138 "losses": {
2139 "type": "integer",
2140 "minLength": 1
2141 },
2142 "wins": {
2143 "type": "integer",
2144 "minLength": 1
2145 }
2146 }
2147 },
2148 "result": {
2149 "type": "object",
2150 "additionalProperties": false,
2151 "required": [
2152 "gameWins"
2153 ],
2154 "properties": {
2155 "gameWins": {
2156 "type": "integer",
2157 "description": "The number of games the team has won in that\nin the series\n",
2158 "minLength": 1
2159 }
2160 }
2161 },
2162 "outcome": {
2163 "type": "string",
2164 "nullable": true,
2165 "description": "Indicate whether the team won or lost the series\n\nThis will be null if the match is ongoing\n",
2166 "enum": [
2167 "loss",
2168 "win"
2169 ]
2170 },
2171 "team": {
2172 "type": "object",
2173 "additionalProperties": false,
2174 "required": [
2175 "code",
2176 "image",
2177 "name"
2178 ],
2179 "properties": {
2180 "code": {
2181 "type": "string",
2182 "minLength": 1
2183 },
2184 "image": {
2185 "type": "string",
2186 "minLength": 1
2187 },
2188 "name": {
2189 "type": "string",
2190 "minLength": 1
2191 }
2192 }
2193 },
2194 "customTeam": {
2195 "type": "object",
2196 "additionalProperties": false,
2197 "required": [
2198 "id",
2199 "side"
2200 ],
2201 "properties": {
2202 "id": {
2203 "$ref": "#/components/schemas/teamId"
2204 },
2205 "side": {
2206 "type": "string",
2207 "enum": [
2208 "blue",
2209 "red"
2210 ]
2211 }
2212 }
2213 },
2214 "extendedTeam": {
2215 "allOf": [
2216 {
2217 "$ref": "#/components/schemas/team"
2218 },
2219 {
2220 "type": "object",
2221 "additionalProperties": false,
2222 "required": [
2223 "id",
2224 "slug",
2225 "alternativeImage",
2226 "homeLeague",
2227 "players"
2228 ],
2229 "properties": {
2230 "id": {
2231 "$ref": "#/components/schemas/teamId"
2232 },
2233 "slug": {
2234 "$ref": "#/components/schemas/teamSlug"
2235 },
2236 "alternativeImage": {
2237 "type": "string",
2238 "minLength": 1
2239 },
2240 "homeLeague": {
2241 "$ref": "#/components/schemas/homeLeague"
2242 },
2243 "players": {
2244 "type": "array",
2245 "items": {
2246 "$ref": "#/components/schemas/player"
2247 }
2248 }
2249 }
2250 }
2251 ]
2252 },
2253 "homeLeague": {
2254 "type": "object",
2255 "additionalProperties": false,
2256 "required": [
2257 "name",
2258 "region"
2259 ],
2260 "properties": {
2261 "name": {
2262 "type": "string",
2263 "description": "The name of the league",
2264 "minLength": 1
2265 },
2266 "region": {
2267 "type": "string",
2268 "description": "The region where the league is located"
2269 }
2270 }
2271 },
2272 "teamSlug": {
2273 "type": "string",
2274 "description": "The URL friendly version of the team name"
2275 },
2276 "teamId": {
2277 "type": "string",
2278 "description": "The team id"
2279 },
2280 "baseStrategy": {
2281 "type": "object",
2282 "additionalProperties": false,
2283 "required": [
2284 "count"
2285 ],
2286 "properties": {
2287 "count": {
2288 "type": "integer",
2289 "enum": [
2290 1,
2291 3,
2292 5
2293 ]
2294 }
2295 }
2296 },
2297 "strategy": {
2298 "allOf": [
2299 {
2300 "$ref": "#/components/schemas/baseStrategy"
2301 },
2302 {
2303 "type": "object",
2304 "additionalProperties": false,
2305 "required": [
2306 "type"
2307 ],
2308 "properties": {
2309 "type": {
2310 "type": "string",
2311 "enum": [
2312 "bestOf"
2313 ]
2314 }
2315 }
2316 }
2317 ]
2318 },
2319 "teams": {
2320 "type": "array",
2321 "minItems": 2,
2322 "maxItems": 2,
2323 "items": {
2324 "$ref": "#/components/schemas/team"
2325 }
2326 },
2327 "baseMatch": {
2328 "type": "object",
2329 "additionalProperties": false,
2330 "required": [
2331 "teams"
2332 ],
2333 "properties": {
2334 "teams": {
2335 "$ref": "#/components/schemas/teams"
2336 }
2337 }
2338 },
2339 "simpleMatch": {
2340 "allOf": [
2341 {
2342 "$ref": "#/components/schemas/baseMatch"
2343 },
2344 {
2345 "type": "object",
2346 "additionalProperties": false,
2347 "required": [
2348 "id"
2349 ],
2350 "properties": {
2351 "id": {
2352 "description": "The match id",
2353 "type": "string"
2354 }
2355 }
2356 }
2357 ]
2358 },
2359 "state": {
2360 "type": "string",
2361 "enum": [
2362 "completed",
2363 "unstarted",
2364 "inProgress"
2365 ]
2366 },
2367 "eventType": {
2368 "type": "string",
2369 "enum": [
2370 "match",
2371 "show"
2372 ]
2373 },
2374 "baseEvent": {
2375 "type": "object",
2376 "properties": {
2377 "match": {
2378 "$ref": "#/components/schemas/baseMatch"
2379 }
2380 }
2381 },
2382 "simpleEvent": {
2383 "type": "object",
2384 "additionalProperties": false,
2385 "required": [
2386 "startTime",
2387 "blockName",
2388 "match"
2389 ],
2390 "properties": {
2391 "startTime": {
2392 "type": "string",
2393 "description": "The time the match started",
2394 "format": "date-time"
2395 },
2396 "blockName": {
2397 "type": "string",
2398 "nullable": true
2399 },
2400 "match": {
2401 "allOf": [
2402 {
2403 "$ref": "#/components/schemas/simpleMatch"
2404 },
2405 {
2406 "type": "object",
2407 "additionalProperties": false,
2408 "required": [
2409 "strategy",
2410 "teams"
2411 ],
2412 "properties": {
2413 "strategy": {
2414 "$ref": "#/components/schemas/strategy"
2415 },
2416 "teams": {
2417 "type": "array",
2418 "items": {
2419 "type": "object",
2420 "additionalProperties": false,
2421 "required": [
2422 "result"
2423 ],
2424 "properties": {
2425 "result": {
2426 "$ref": "#/components/schemas/result"
2427 }
2428 }
2429 }
2430 }
2431 }
2432 }
2433 ]
2434 }
2435 }
2436 },
2437 "extendedEvent": {
2438 "allOf": [
2439 {
2440 "$ref": "#/components/schemas/simpleEvent"
2441 },
2442 {
2443 "type": "object",
2444 "additionalProperties": false,
2445 "required": [
2446 "state",
2447 "type"
2448 ],
2449 "properties": {
2450 "state": {
2451 "$ref": "#/components/schemas/state"
2452 },
2453 "type": {
2454 "$ref": "#/components/schemas/eventType"
2455 }
2456 }
2457 }
2458 ]
2459 },
2460 "tournament": {
2461 "type": "object",
2462 "additionalProperties": false,
2463 "required": [
2464 "endDate",
2465 "id",
2466 "slug",
2467 "startDate"
2468 ],
2469 "properties": {
2470 "endDate": {
2471 "type": "string",
2472 "description": "The date the tournament ends/ended.",
2473 "format": "full-date"
2474 },
2475 "id": {
2476 "type": "string",
2477 "description": "This is the tournament id"
2478 },
2479 "slug": {
2480 "type": "string"
2481 },
2482 "startDate": {
2483 "type": "string",
2484 "description": "The date the tournament starts/started.",
2485 "format": "full-date"
2486 }
2487 }
2488 },
2489 "stage": {
2490 "type": "object",
2491 "description": "Represents a stage in a tournament.\n\nWhether it is the group or knockout stage.\n",
2492 "additionalProperties": false,
2493 "required": [
2494 "name",
2495 "type",
2496 "slug",
2497 "sections"
2498 ],
2499 "properties": {
2500 "name": {
2501 "type": "string",
2502 "description": "The name of that stage of the tournament"
2503 },
2504 "type": {
2505 "type": "string",
2506 "description": "The type of the stage.",
2507 "enum": [
2508 "groups",
2509 "bracket"
2510 ]
2511 },
2512 "slug": {
2513 "type": "string"
2514 },
2515 "sections": {
2516 "type": "array",
2517 "description": "Each object in the array represents a particular round in that\nspecific stage in the tournament.\n\nFor the knockout stages, we could have the quarter finals,\nsemi finals and the finals under their own sections.\n\nFor the group stage, there is usually only one section.\n",
2518 "items": {
2519 "$ref": "#/components/schemas/section"
2520 }
2521 }
2522 }
2523 },
2524 "section": {
2525 "type": "object",
2526 "additionalProperties": false,
2527 "required": [
2528 "name",
2529 "matches",
2530 "rankings"
2531 ],
2532 "properties": {
2533 "name": {
2534 "type": "string",
2535 "description": "The name of the section"
2536 },
2537 "matches": {
2538 "type": "array",
2539 "items": {
2540 "allOf": [
2541 {
2542 "$ref": "#/components/schemas/simpleMatch"
2543 },
2544 {
2545 "type": "object",
2546 "additionalProperties": false,
2547 "required": [
2548 "state",
2549 "previousMatchIds",
2550 "flags",
2551 "teams"
2552 ],
2553 "properties": {
2554 "state": {
2555 "$ref": "#/components/schemas/state"
2556 },
2557 "previousMatchIds": {
2558 "type": "array",
2559 "description": "This stores the previous match ids for the teams in the current\nmatch were involved in.\n\nFor group stages this is usually null. For bracket stage it is\nused to indicate the matches that were played before the match\nin question.\n",
2560 "nullable": true,
2561 "items": {
2562 "type": "string"
2563 }
2564 },
2565 "flags": {
2566 "type": "string",
2567 "nullable": true,
2568 "description": "The purpose of this key is unknown. So far the only value it\nhas seems to be null.\n"
2569 },
2570 "teams": {
2571 "type": "array",
2572 "items": {
2573 "type": "object",
2574 "additionalProperties": false,
2575 "required": [
2576 "id",
2577 "slug",
2578 "result"
2579 ],
2580 "properties": {
2581 "id": {
2582 "$ref": "#/components/schemas/teamId"
2583 },
2584 "slug": {
2585 "$ref": "#/components/schemas/teamSlug"
2586 },
2587 "result": {
2588 "allOf": [
2589 {
2590 "$ref": "#/components/schemas/result"
2591 },
2592 {
2593 "type": "object",
2594 "additionalProperties": false,
2595 "required": "outcome",
2596 "properties": {
2597 "outcome": {
2598 "$ref": "#/components/schemas/outcome"
2599 }
2600 }
2601 }
2602 ]
2603 }
2604 }
2605 }
2606 }
2607 }
2608 }
2609 ]
2610 }
2611 },
2612 "rankings": {
2613 "type": "array",
2614 "description": "Contains details about the actual standings for that particular\nsection\n\nThis is mostly used for the group stage. For the knockout stages, it\nis usually empty.\n",
2615 "items": {
2616 "$ref": "#/components/schemas/ranking"
2617 }
2618 }
2619 }
2620 },
2621 "ranking": {
2622 "type": "object",
2623 "additionalProperties": false,
2624 "required": [
2625 "ordinal",
2626 "teams"
2627 ],
2628 "properties": {
2629 "ordinal": {
2630 "type": "integer",
2631 "description": "The league position"
2632 },
2633 "teams": {
2634 "type": "array",
2635 "description": "The teams that are at that league position.\n\nIn most cases there will only be one team object in this array. In\ncases where several teams are tied with the same score, this array will\ncontain all teams tied for that position.\n",
2636 "items": {
2637 "allOf": [
2638 {
2639 "$ref": "#/components/schemas/team"
2640 },
2641 {
2642 "type": "object",
2643 "properties": {
2644 "id": {
2645 "$ref": "#/components/schemas/teamId"
2646 },
2647 "slug": {
2648 "$ref": "#/components/schemas/teamSlug"
2649 },
2650 "record": {
2651 "$ref": "#/components/schemas/record"
2652 }
2653 }
2654 }
2655 ]
2656 }
2657 }
2658 }
2659 },
2660 "game": {
2661 "type": "object",
2662 "additionalProperties": false,
2663 "required": [
2664 "vods"
2665 ],
2666 "properties": {
2667 "vods": {
2668 "type": "array",
2669 "items": {
2670 "$ref": "#/components/schemas/vod"
2671 }
2672 }
2673 }
2674 },
2675 "simpleGame": {
2676 "type": "object",
2677 "additionalProperties": false,
2678 "required": [
2679 "id",
2680 "state",
2681 "number",
2682 "vods"
2683 ],
2684 "properties": {
2685 "id": {
2686 "type": "string",
2687 "description": "The game ID"
2688 },
2689 "state": {
2690 "$ref": "#/components/schemas/state"
2691 },
2692 "number": {
2693 "type": "integer",
2694 "description": "The number of the game",
2695 "enum": [
2696 1,
2697 2,
2698 3,
2699 4,
2700 5
2701 ]
2702 },
2703 "vods": {
2704 "type": "array",
2705 "items": {
2706 "$ref": "#/components/schemas/extendedVod"
2707 }
2708 }
2709 }
2710 },
2711 "extendedGame": {
2712 "allOf": [
2713 {
2714 "$ref": "#/components/schemas/simpleGame"
2715 },
2716 {
2717 "type": "object",
2718 "additionalProperties": false,
2719 "required": [
2720 "teams"
2721 ],
2722 "properties": {
2723 "teams": {
2724 "type": "array",
2725 "items": {
2726 "$ref": "#/components/schemas/customTeam"
2727 }
2728 }
2729 }
2730 }
2731 ]
2732 },
2733 "vod": {
2734 "type": "object",
2735 "additionalProperties": false,
2736 "required": [
2737 "parameter"
2738 ],
2739 "properties": {
2740 "parameter": {
2741 "type": "string"
2742 }
2743 }
2744 },
2745 "extendedVod": {
2746 "allOf": [
2747 {
2748 "$ref": "#/components/schemas/vod"
2749 },
2750 {
2751 "type": "object",
2752 "additionalProperties": false,
2753 "required": [
2754 "locale",
2755 "provider",
2756 "offset"
2757 ],
2758 "properties": {
2759 "locale": {
2760 "$ref": "#/components/schemas/locale"
2761 },
2762 "provider": {
2763 "type": "string",
2764 "description": "The platform that is hosting the vod\n",
2765 "enum": [
2766 "youtube",
2767 "twitch"
2768 ]
2769 },
2770 "offset": {
2771 "type": "integer",
2772 "description": "Purpose Unknown"
2773 }
2774 }
2775 }
2776 ]
2777 },
2778 "locale": {
2779 "type": "string",
2780 "description": "This is the locale or language code using [ISO 639-1](https://en.wikipedia.org/wiki/ISO_639-1)\nand [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)\n",
2781 "enum": [
2782 "en-US",
2783 "en-GB",
2784 "en-AU",
2785 "cs-CZ",
2786 "de-DE",
2787 "el-GR",
2788 "es-ES",
2789 "es-MX",
2790 "fr-FR",
2791 "hu-HU",
2792 "it-IT",
2793 "pl-PL",
2794 "pt-BR",
2795 "ro-RO",
2796 "ru-RU",
2797 "tr-TR",
2798 "ja-JP",
2799 "ko-KR"
2800 ]
2801 },
2802 "player": {
2803 "type": "object",
2804 "additionalProperties": false,
2805 "required": [
2806 "id",
2807 "summonerName",
2808 "firstName",
2809 "lastName",
2810 "image",
2811 "role"
2812 ],
2813 "properties": {
2814 "id": {
2815 "type": "string"
2816 },
2817 "summonerName": {
2818 "type": "string"
2819 },
2820 "firstName": {
2821 "type": "string"
2822 },
2823 "lastName": {
2824 "type": "string"
2825 },
2826 "image": {
2827 "type": "string"
2828 },
2829 "role": {
2830 "type": "string"
2831 }
2832 }
2833 },
2834 "window": {
2835 "type": "object",
2836 "additionalProperties": false,
2837 "required": [
2838 "esportsGameId",
2839 "esportsMatchId",
2840 "gameMetadata",
2841 "frames"
2842 ],
2843 "properties": {
2844 "esportsGameId": {
2845 "type": "string",
2846 "description": "The game Id of the match"
2847 },
2848 "esportsMatchId": {
2849 "type": "string",
2850 "description": "The match Id of the match"
2851 },
2852 "gameMetadata": {
2853 "$ref": "#/components/schemas/gameMetadata"
2854 },
2855 "frames": {
2856 "type": "array",
2857 "items": {
2858 "$ref": "#/components/schemas/windowFrame"
2859 }
2860 }
2861 }
2862 },
2863 "gameMetadata": {
2864 "type": "object",
2865 "additionalProperties": false,
2866 "required": [
2867 "patchVersion",
2868 "blueTeamMetadata",
2869 "redTeamMetadata"
2870 ],
2871 "properties": {
2872 "patchVersion": {
2873 "type": "string",
2874 "description": "The patch the match was played on"
2875 },
2876 "blueTeamMetadata": {
2877 "$ref": "#/components/schemas/teamMetadata"
2878 },
2879 "redTeamMetadata": {
2880 "$ref": "#/components/schemas/teamMetadata"
2881 }
2882 }
2883 },
2884 "teamMetadata": {
2885 "type": "object",
2886 "additionalProperties": false,
2887 "required": [
2888 "esportsTeamId",
2889 "participantMetadata"
2890 ],
2891 "properties": {
2892 "esportsTeamId": {
2893 "type": "string",
2894 "description": "The team Id"
2895 },
2896 "participantMetadata": {
2897 "type": "array",
2898 "items": {
2899 "oneOf": [
2900 {
2901 "$ref": "#/components/schemas/participantMetadata"
2902 },
2903 {
2904 "$ref": "#/components/schemas/participantMetadataExtended"
2905 }
2906 ]
2907 }
2908 }
2909 }
2910 },
2911 "participantMetadata": {
2912 "type": "object",
2913 "additionalProperties": false,
2914 "required": [
2915 "participantId",
2916 "summonerName",
2917 "championId",
2918 "role"
2919 ],
2920 "properties": {
2921 "participantId": {
2922 "$ref": "#/components/schemas/participantId"
2923 },
2924 "summonerName": {
2925 "type": "string"
2926 },
2927 "championId": {
2928 "type": "string"
2929 },
2930 "role": {
2931 "type": "string",
2932 "enum": [
2933 "top",
2934 "jungle",
2935 "mid",
2936 "bottom",
2937 "support"
2938 ]
2939 }
2940 }
2941 },
2942 "participantMetadataExtended": {
2943 "allOf": [
2944 {
2945 "$ref": "#/components/schemas/participantMetadata"
2946 },
2947 {
2948 "type": "object",
2949 "additionalProperties": false,
2950 "required": [
2951 "esportsPlayerId"
2952 ],
2953 "properties": {
2954 "esportsPlayerId": {
2955 "type": "string"
2956 }
2957 }
2958 }
2959 ]
2960 },
2961 "participantId": {
2962 "type": "integer",
2963 "enum": [
2964 1,
2965 2,
2966 3,
2967 4,
2968 5,
2969 6,
2970 7,
2971 8,
2972 9,
2973 10
2974 ]
2975 },
2976 "baseFrame": {
2977 "type": "object",
2978 "additionalProperties": false,
2979 "required": [
2980 "rfc460Timestamp"
2981 ],
2982 "properties": {
2983 "rfc460Timestamp": {
2984 "type": "string",
2985 "format": "date-time"
2986 }
2987 }
2988 },
2989 "windowFrame": {
2990 "allOf": [
2991 {
2992 "$ref": "#/components/schemas/baseFrame"
2993 },
2994 {
2995 "type": "object",
2996 "additionalProperties": false,
2997 "required": [
2998 "rfc460Timestamp",
2999 "gameState",
3000 "blueTeam",
3001 "redTeam"
3002 ],
3003 "properties": {
3004 "rfc460Timestamp": {
3005 "type": "string",
3006 "format": "date-time"
3007 },
3008 "gameState": {
3009 "type": "string",
3010 "enum": [
3011 "in_game",
3012 "finished"
3013 ]
3014 },
3015 "blueTeam": {
3016 "$ref": "#/components/schemas/teamStats"
3017 },
3018 "redTeam": {
3019 "$ref": "#/components/schemas/teamStats"
3020 }
3021 }
3022 }
3023 ]
3024 },
3025 "detailsFrame": {
3026 "allOf": [
3027 {
3028 "$ref": "#/components/schemas/baseFrame"
3029 },
3030 {
3031 "type": "object",
3032 "additionalProperties": false,
3033 "required": [
3034 "participants"
3035 ],
3036 "properties": {
3037 "participants": {
3038 "type": "array",
3039 "minItems": 1,
3040 "maxItems": 10,
3041 "items": {
3042 "$ref": "#/components/schemas/extendedParticipantStats"
3043 }
3044 }
3045 }
3046 }
3047 ]
3048 },
3049 "teamStats": {
3050 "type": "object",
3051 "additionalProperties": false,
3052 "required": [
3053 "totalGold",
3054 "inhibitors",
3055 "towers",
3056 "barons",
3057 "totalKills",
3058 "dragons",
3059 "participants"
3060 ],
3061 "properties": {
3062 "totalGold": {
3063 "type": "integer"
3064 },
3065 "inhibitors": {
3066 "type": "integer"
3067 },
3068 "towers": {
3069 "type": "integer"
3070 },
3071 "barons": {
3072 "type": "integer"
3073 },
3074 "totalKills": {
3075 "type": "integer"
3076 },
3077 "dragons": {
3078 "type": "array",
3079 "items": {
3080 "type": "string",
3081 "enum": [
3082 "ocean",
3083 "mountain",
3084 "infernal",
3085 "cloud",
3086 "elder"
3087 ]
3088 }
3089 },
3090 "participants": {
3091 "type": "array",
3092 "maxItems": 5,
3093 "items": {
3094 "$ref": "#/components/schemas/participantStats"
3095 }
3096 }
3097 }
3098 },
3099 "baseParticipantStats": {
3100 "type": "object",
3101 "additionalProperties": false,
3102 "required": [
3103 "participantId",
3104 "level",
3105 "kills",
3106 "deaths",
3107 "assists",
3108 "creepScore"
3109 ],
3110 "properties": {
3111 "participantId": {
3112 "$ref": "#/components/schemas/participantId"
3113 },
3114 "level": {
3115 "type": "integer"
3116 },
3117 "kills": {
3118 "type": "integer"
3119 },
3120 "deaths": {
3121 "type": "integer"
3122 },
3123 "assists": {
3124 "type": "integer"
3125 },
3126 "creepScore": {
3127 "type": "integer"
3128 }
3129 }
3130 },
3131 "participantStats": {
3132 "allOf": [
3133 {
3134 "$ref": "#/components/schemas/baseParticipantStats"
3135 },
3136 {
3137 "type": "object",
3138 "additionalProperties": false,
3139 "required": [
3140 "totalGold",
3141 "currentHealth",
3142 "maxHealth"
3143 ],
3144 "properties": {
3145 "totalGold": {
3146 "type": "integer"
3147 },
3148 "currentHealth": {
3149 "type": "integer"
3150 },
3151 "maxHealth": {
3152 "type": "integer"
3153 }
3154 }
3155 }
3156 ]
3157 },
3158 "extendedParticipantStats": {
3159 "allOf": [
3160 {
3161 "$ref": "#/components/schemas/participantStats"
3162 },
3163 {
3164 "type": "object",
3165 "additionalProperties": false,
3166 "required": [
3167 "totalGoldEarned",
3168 "killParticipation",
3169 "championDamageShare",
3170 "wardsPlaced",
3171 "wardsDestroyed",
3172 "attackDamage",
3173 "abilityPower",
3174 "criticalChance",
3175 "attackSpeed",
3176 "lifeSteal",
3177 "armor",
3178 "magicResistance",
3179 "tenacity",
3180 "items",
3181 "perkMetadata",
3182 "abilities"
3183 ],
3184 "properties": {
3185 "totalGoldEarned": {
3186 "type": "integer"
3187 },
3188 "killParticipation": {
3189 "type": "number",
3190 "format": "float"
3191 },
3192 "championDamageShare": {
3193 "type": "number",
3194 "format": "float"
3195 },
3196 "wardsPlaced": {
3197 "type": "integer"
3198 },
3199 "wardsDestroyed": {
3200 "type": "integer"
3201 },
3202 "attackDamage": {
3203 "type": "integer"
3204 },
3205 "abilityPower": {
3206 "type": "integer"
3207 },
3208 "criticalChance": {
3209 "type": "number",
3210 "format": "float"
3211 },
3212 "attackSpeed": {
3213 "type": "integer"
3214 },
3215 "lifeSteal": {
3216 "type": "integer"
3217 },
3218 "armor": {
3219 "type": "integer"
3220 },
3221 "magicResistance": {
3222 "type": "integer"
3223 },
3224 "tenacity": {
3225 "type": "number",
3226 "format": "float"
3227 },
3228 "items": {
3229 "type": "array",
3230 "maxItems": 7,
3231 "description": "Contains the item Ids of the items in the inventory\n",
3232 "items": {
3233 "type": "integer"
3234 }
3235 },
3236 "perkMetadata": {
3237 "$ref": "#/components/schemas/perkMetadata"
3238 },
3239 "abilities": {
3240 "$ref": "#/components/schemas/abilities"
3241 }
3242 }
3243 }
3244 ]
3245 },
3246 "perkMetadata": {
3247 "type": "object",
3248 "additionalProperties": false,
3249 "required": [
3250 "styleId",
3251 "subStyleId",
3252 "perks"
3253 ],
3254 "properties": {
3255 "styleId": {
3256 "type": "integer",
3257 "description": "The id of the primary rune path\n",
3258 "enum": [
3259 8000,
3260 8100,
3261 8200,
3262 8300,
3263 8400
3264 ]
3265 },
3266 "subStyleId": {
3267 "type": "integer",
3268 "description": "The id of the secondary rune path\n",
3269 "enum": [
3270 8000,
3271 8100,
3272 8200,
3273 8300,
3274 8400
3275 ]
3276 },
3277 "perks": {
3278 "type": "array",
3279 "minItems": 9,
3280 "maxItems": 9,
3281 "description": "The runes selected.\n\nIndex 0 - 3 are the ids of the primary runes\nIndex 4 - 5 are the ids of the secondary runes\nIndex 6 - 8 are the ids of the stats shard\n",
3282 "items": {
3283 "type": "integer"
3284 }
3285 }
3286 }
3287 },
3288 "abilities": {
3289 "type": "array",
3290 "description": "Contains the abilities the summoner levelled up at each level\n",
3291 "maxItems": 18,
3292 "enum": [
3293 "Q",
3294 "W",
3295 "E",
3296 "R"
3297 ],
3298 "items": {
3299 "type": "string"
3300 }
3301 },
3302 "navItem": {
3303 "type": "object",
3304 "additionalProperties": false,
3305 "required": [
3306 "id",
3307 "link",
3308 "slug",
3309 "label",
3310 "imageUrl",
3311 "order",
3312 "external",
3313 "parentNavItem",
3314 "createdAt",
3315 "updatedAt"
3316 ],
3317 "properties": {
3318 "id": {
3319 "type": "integer"
3320 },
3321 "link": {
3322 "type": "string"
3323 },
3324 "slug": {
3325 "type": "string",
3326 "nullable": true
3327 },
3328 "label": {
3329 "type": "string"
3330 },
3331 "imageUrl": {
3332 "type": "string",
3333 "nullable": true
3334 },
3335 "order": {
3336 "type": "integer"
3337 },
3338 "external": {
3339 "type": "boolean"
3340 },
3341 "parentNavItem": {
3342 "allOf": [
3343 {
3344 "$ref": "#/components/schemas/navItem"
3345 },
3346 {
3347 "type": "object",
3348 "nullable": true
3349 }
3350 ]
3351 },
3352 "createdAt": {
3353 "type": "string",
3354 "description": "The date and time when this entry was created.",
3355 "format": "date-time"
3356 },
3357 "updatedAt": {
3358 "type": "string",
3359 "description": "The date and time when this entry was last updated.",
3360 "format": "date-time"
3361 }
3362 }
3363 },
3364 "video": {
3365 "type": "object",
3366 "additionalProperties": false,
3367 "required": [
3368 "id",
3369 "slug",
3370 "label",
3371 "locale",
3372 "reference",
3373 "source",
3374 "createdAt",
3375 "updatedAt",
3376 "game"
3377 ],
3378 "properties": {
3379 "id": {
3380 "type": "integer"
3381 },
3382 "slug": {
3383 "type": "string",
3384 "nullable": true
3385 },
3386 "label": {
3387 "type": "string",
3388 "nullable": true
3389 },
3390 "locale": {
3391 "type": "string",
3392 "description": "The video's locale. The value is a [ISO 639-1](https://en.wikipedia.org/wiki/ISO_639-1)\nlanguage code.\n"
3393 },
3394 "reference": {
3395 "type": "string",
3396 "pattern": "^urn:rg:lolesports:global:highlander:tournament:(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}):game:(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12})$",
3397 "description": "Contains the tournament Id and the game Id of that match.\n"
3398 },
3399 "source": {
3400 "type": "string",
3401 "description": "URL to the YouTube video of the match\n"
3402 },
3403 "createdAt": {
3404 "type": "string",
3405 "description": "The date and time when this entry was created.",
3406 "format": "date-time"
3407 },
3408 "updatedAt": {
3409 "type": "string",
3410 "description": "The date and time when this entry was last updated.",
3411 "format": "date-time"
3412 },
3413 "game": {
3414 "$ref": "#/components/schemas/gameId"
3415 }
3416 }
3417 },
3418 "gameId": {
3419 "type": "string",
3420 "description": "The game Id of the match.\n\nIt is a [UUID version 4](https://en.wikipedia.org/wiki/Universally_unique_identifier)\n",
3421 "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
3422 },
3423 "highlanderTournaments": {
3424 "type": "array",
3425 "items": {
3426 "$ref": "#/components/schemas/highlanderTournament"
3427 }
3428 },
3429 "highlanderTournament": {
3430 "type": "object",
3431 "required": [
3432 "id",
3433 "title",
3434 "description",
3435 "leagueReference",
3436 "roles",
3437 "queues",
3438 "published",
3439 "rosters",
3440 "brackets",
3441 "liveMatches",
3442 "startDate",
3443 "endDate",
3444 "platformIds",
3445 "gameIds",
3446 "leagueId",
3447 "league"
3448 ],
3449 "properties": {
3450 "id": {
3451 "type": "string",
3452 "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$",
3453 "description": "The tournament Id\n\nIt is a [UUID version 4](https://en.wikipedia.org/wiki/Universally_unique_identifier)\n"
3454 },
3455 "title": {
3456 "type": "string",
3457 "description": "URL friendly version of the tournament name"
3458 },
3459 "description": {
3460 "type": "string",
3461 "description": "The tournament's name"
3462 },
3463 "leagueReference": {
3464 "type": "string",
3465 "pattern": "^urn:rg:lolesports:global:league:league:\\d+$",
3466 "description": "The integer in the string represents the league ID."
3467 },
3468 "roles": {
3469 "$ref": "#/components/schemas/roles"
3470 },
3471 "bracketType": {
3472 "$ref": "#/components/schemas/bracketType"
3473 },
3474 "matchType": {
3475 "$ref": "#/components/schemas/matchType"
3476 },
3477 "rosteringStrategy": {
3478 "$ref": "#/components/schemas/rosteringStrategy"
3479 },
3480 "seedingStrategy": {
3481 "$ref": "#/components/schemas/rosteringStrategy"
3482 },
3483 "queues": {
3484 "type": "object",
3485 "minProperties": 0
3486 },
3487 "rosters": {
3488 "type": "object",
3489 "description": "The keys to this object are [UUID version 4](https://en.wikipedia.org/wiki/Universally_unique_identifier)\nrepresenting the roster ID.\n\nTheir values are objects but they don't contain anything useful about the roster.\n",
3490 "additionalProperties": {
3491 "type": "object",
3492 "required": [
3493 "id",
3494 "name",
3495 "roles",
3496 "teamReference",
3497 "substitutions",
3498 "team"
3499 ],
3500 "properties": {
3501 "id": {
3502 "type": "string",
3503 "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$",
3504 "description": "The roster ID.\n\nIt is a [UUID version 4](https://en.wikipedia.org/wiki/Universally_unique_identifier)\n"
3505 },
3506 "state": {
3507 "type": "string",
3508 "enum": [
3509 "eliminated"
3510 ]
3511 },
3512 "name": {
3513 "type": "string",
3514 "description": "The abbreviated version of the team's name."
3515 },
3516 "roles": {
3517 "type": "object",
3518 "minProperties": 0
3519 },
3520 "teamReference": {
3521 "type": "string",
3522 "pattern": "^urn:rg:lolesports:global:team:team:\\d+$"
3523 },
3524 "substitutions": {
3525 "type": "object",
3526 "minProperties": 0
3527 },
3528 "team": {
3529 "type": "string",
3530 "pattern": "^\\d+$",
3531 "description": "The Team ID"
3532 }
3533 }
3534 }
3535 },
3536 "published": {
3537 "type": "boolean",
3538 "enum": [
3539 true,
3540 false
3541 ],
3542 "description": "If the value is true then the league/tournament has concluded, otherwise it is ongoing.\n"
3543 },
3544 "breakpoints": {
3545 "$ref": "#/components/schemas/breakpoints"
3546 },
3547 "brackets": {
3548 "$ref": "#/components/schemas/brackets"
3549 },
3550 "standings": {
3551 "$ref": "#/components/schemas/standings"
3552 },
3553 "liveMatches": {
3554 "type": "array",
3555 "description": "The array contains [UUID version 4](https://en.wikipedia.org/wiki/Universally_unique_identifier) Match IDs\n\nDespite the name of this property it is unreliable as for some tournaments this array will\ncontain match IDs yet the matches are over.\n",
3556 "items": {
3557 "type": "string",
3558 "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
3559 }
3560 },
3561 "startDate": {
3562 "type": "string",
3563 "description": "The day the tournament starts/started.",
3564 "format": "date"
3565 },
3566 "endDate": {
3567 "type": "string",
3568 "description": "The day the tournament ends/ended.",
3569 "format": "date"
3570 },
3571 "platformIds": {
3572 "type": "array",
3573 "description": "Contains all the platform IDs in for this tournaments.\n\nA platform ID is combination of the gameRealm and the gameId.\nThe regex below describes the format.\n\n`^[A-Z]+\\d+:\\d+$`\n",
3574 "items": {
3575 "type": "string"
3576 }
3577 },
3578 "gameIds": {
3579 "type": "array",
3580 "description": "'Contains all the gameIds in this tournament.\n\n**Note:** The gameIds are in the format [UUID version 4](https://en.wikipedia.org/wiki/Universally_unique_identifier)'\n",
3581 "items": {
3582 "type": "string"
3583 }
3584 },
3585 "leagueId": {
3586 "type": "string",
3587 "description": "The league ID",
3588 "pattern": "^\\d+$"
3589 },
3590 "league": {
3591 "type": "string",
3592 "description": "The league ID",
3593 "pattern": "^\\d+$"
3594 }
3595 }
3596 },
3597 "rosteringStrategy": {
3598 "type": "object",
3599 "required": [
3600 "identifier"
3601 ],
3602 "properties": {
3603 "identifier": {
3604 "type": "string",
3605 "enum": [
3606 "passthru",
3607 "random"
3608 ]
3609 }
3610 }
3611 },
3612 "roles": {
3613 "type": "object",
3614 "required": [
3615 "creator",
3616 "owner"
3617 ],
3618 "properties": {
3619 "creator": {
3620 "type": "array",
3621 "minItems": 1,
3622 "items": {
3623 "$ref": "#/components/schemas/role"
3624 }
3625 },
3626 "owner": {
3627 "type": "array",
3628 "minItems": 1,
3629 "items": {
3630 "$ref": "#/components/schemas/role"
3631 }
3632 }
3633 }
3634 },
3635 "role": {
3636 "type": "object",
3637 "required": [
3638 "origin",
3639 "region",
3640 "summonerName",
3641 "summonerLevel",
3642 "profileIconId",
3643 "admin"
3644 ],
3645 "properties": {
3646 "origin": {
3647 "type": "string",
3648 "enum": [
3649 "BEARER_TOKEN"
3650 ]
3651 },
3652 "region": {
3653 "type": "string",
3654 "enum": [
3655 "global"
3656 ]
3657 },
3658 "summonerName": {
3659 "type": "string",
3660 "enum": [
3661 "test-user"
3662 ]
3663 },
3664 "summonerLevel": {
3665 "type": "integer",
3666 "enum": [
3667 0
3668 ]
3669 },
3670 "profileIconId": {
3671 "type": "integer",
3672 "enum": [
3673 0
3674 ]
3675 },
3676 "admin": {
3677 "type": "boolean",
3678 "enum": [
3679 true
3680 ]
3681 }
3682 }
3683 },
3684 "simpleRoster": {
3685 "type": "object",
3686 "properties": {
3687 "roster": {
3688 "type": "string",
3689 "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$",
3690 "description": "The roster ID"
3691 }
3692 }
3693 },
3694 "breakpoints": {
3695 "type": "object",
3696 "description": "The keys to this object are [UUID version 4](https://en.wikipedia.org/wiki/Universally_unique_identifier)\nrepresenting the roster ID.\n",
3697 "additionalProperties": {
3698 "type": "object",
3699 "required": [
3700 "id",
3701 "name",
3702 "position",
3703 "input",
3704 "scores",
3705 "roles",
3706 "generator"
3707 ],
3708 "properties": {
3709 "id": {
3710 "type": "string",
3711 "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$",
3712 "description": "The breakpoint's ID"
3713 },
3714 "name": {
3715 "type": "string"
3716 },
3717 "position": {
3718 "type": "integer"
3719 },
3720 "input": {
3721 "type": "array",
3722 "items": {
3723 "allOf": [
3724 {
3725 "$ref": "#/components/schemas/simpleRoster"
3726 },
3727 {
3728 "type": "object",
3729 "properties": {
3730 "bracket": {
3731 "type": "string",
3732 "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$",
3733 "description": "The bracket ID"
3734 },
3735 "standing": {
3736 "type": "integer"
3737 }
3738 }
3739 }
3740 ]
3741 }
3742 },
3743 "standings": {
3744 "$ref": "#/components/schemas/standings"
3745 },
3746 "scores": {
3747 "$ref": "#/components/schemas/scores"
3748 },
3749 "roles": {
3750 "$ref": "#/components/schemas/roles"
3751 },
3752 "generator": {
3753 "type": "object",
3754 "properties": {
3755 "identifier": {
3756 "type": "string",
3757 "enum": [
3758 "noop"
3759 ]
3760 }
3761 }
3762 }
3763 }
3764 }
3765 },
3766 "standings": {
3767 "type": "object",
3768 "required": [
3769 "result",
3770 "timestamp",
3771 "closed"
3772 ],
3773 "properties": {
3774 "result": {
3775 "$ref": "#/components/schemas/highlanderResult"
3776 },
3777 "timestamp": {
3778 "type": "integer",
3779 "format": "int64",
3780 "description": "Unix timestamp in milliseconds of when the match started."
3781 },
3782 "source": {
3783 "type": "string",
3784 "enum": [
3785 "manual",
3786 "bestOf"
3787 ],
3788 "description": "How the record was created/updated."
3789 },
3790 "note": {
3791 "type": "string"
3792 },
3793 "history": {
3794 "type": "array",
3795 "items": {
3796 "$ref": "#/components/schemas/standings"
3797 }
3798 },
3799 "closed": {
3800 "type": "boolean",
3801 "description": "If the value is true then the league/tournament has concluded, otherwise it is ongoing.\n",
3802 "enum": [
3803 true,
3804 false
3805 ]
3806 }
3807 }
3808 },
3809 "highlanderResult": {
3810 "type": "array",
3811 "items": {
3812 "type": "array",
3813 "items": {
3814 "$ref": "#/components/schemas/simpleRoster"
3815 }
3816 }
3817 },
3818 "brackets": {
3819 "type": "object",
3820 "description": "The keys to this object are [UUID version 4](https://en.wikipedia.org/wiki/Universally_unique_identifier)\nrepresenting the bracket ID.\n",
3821 "additionalProperties": {
3822 "type": "object",
3823 "required": [
3824 "id",
3825 "name",
3826 "position",
3827 "groupPosition",
3828 "canManufacture",
3829 "state",
3830 "matches",
3831 "roles",
3832 "scores",
3833 "matchScores"
3834 ],
3835 "properties": {
3836 "id": {
3837 "type": "string",
3838 "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$",
3839 "description": "The bracket ID."
3840 },
3841 "name": {
3842 "type": "string",
3843 "description": "The name of the bracket"
3844 },
3845 "position": {
3846 "type": "integer"
3847 },
3848 "groupPosition": {
3849 "type": "integer"
3850 },
3851 "groupName": {
3852 "type": "string"
3853 },
3854 "canManufacture": {
3855 "type": "boolean"
3856 },
3857 "state": {
3858 "type": "string",
3859 "enum": [
3860 "resolved",
3861 "unresolved",
3862 "unlinked"
3863 ],
3864 "description": "Whether it is ongoing or completed.\n\nThis is unreliable since some tournaments have the state unresolved yet they concluded\na long time ago.\n"
3865 },
3866 "bracketType": {
3867 "$ref": "#/components/schemas/bracketType"
3868 },
3869 "matchType": {
3870 "$ref": "#/components/schemas/matchType"
3871 },
3872 "gameMode": {
3873 "$ref": "#/components/schemas/gameMode"
3874 },
3875 "input": {
3876 "type": "array",
3877 "items": {
3878 "allOf": [
3879 {
3880 "$ref": "#/components/schemas/simpleRoster"
3881 },
3882 {
3883 "type": "object",
3884 "properties": {
3885 "breakpoint": {
3886 "type": "string",
3887 "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$",
3888 "description": "The breakpoint ID"
3889 },
3890 "standing": {
3891 "type": "integer"
3892 }
3893 }
3894 }
3895 ]
3896 }
3897 },
3898 "matches": {
3899 "type": "object",
3900 "description": "The keys to this object are [UUID version 4](https://en.wikipedia.org/wiki/Universally_unique_identifier)\nrepresenting the match ID.\n",
3901 "additionalProperties": {
3902 "$ref": "#/components/schemas/highlanderMatch"
3903 }
3904 },
3905 "standings": {
3906 "$ref": "#/components/schemas/standings"
3907 },
3908 "inheritableMatchScoringStrategy": {
3909 "$ref": "#/components/schemas/scoring"
3910 },
3911 "roles": {
3912 "$ref": "#/components/schemas/roles"
3913 },
3914 "scoring": {
3915 "$ref": "#/components/schemas/scoring"
3916 },
3917 "scores": {
3918 "$ref": "#/components/schemas/scores"
3919 },
3920 "matchScoring": {
3921 "$ref": "#/components/schemas/scoring"
3922 },
3923 "matchScores": {
3924 "$ref": "#/components/schemas/scores"
3925 }
3926 }
3927 }
3928 },
3929 "bracketType": {
3930 "type": "object",
3931 "required": [
3932 "identifier"
3933 ],
3934 "properties": {
3935 "identifier": {
3936 "type": "string",
3937 "enum": [
3938 "round_robin",
3939 "single_elim",
3940 "gauntlet",
3941 "bestOf"
3942 ]
3943 },
3944 "options": {
3945 "type": "object",
3946 "required": [
3947 "rounds"
3948 ],
3949 "properties": {
3950 "rounds": {
3951 "type": "string",
3952 "pattern": "^\\d+$"
3953 }
3954 }
3955 }
3956 }
3957 },
3958 "matchType": {
3959 "type": "object",
3960 "required": [
3961 "identifier"
3962 ],
3963 "properties": {
3964 "identifier": {
3965 "type": "string",
3966 "enum": [
3967 "bestOf",
3968 "single_elim"
3969 ]
3970 },
3971 "options": {
3972 "type": "object",
3973 "required": [
3974 "best_of"
3975 ],
3976 "properties": {
3977 "best_of": {
3978 "type": "string",
3979 "pattern": "^\\d+$"
3980 }
3981 }
3982 }
3983 }
3984 },
3985 "gameMode": {
3986 "type": "object",
3987 "required": [
3988 "identifier",
3989 "requiredPlayers",
3990 "mapName"
3991 ],
3992 "properties": {
3993 "identifier": {
3994 "type": "string",
3995 "enum": [
3996 "lol:duel",
3997 "lol:classic"
3998 ]
3999 },
4000 "requiredPlayers": {
4001 "type": "integer",
4002 "enum": [
4003 1,
4004 5
4005 ]
4006 },
4007 "mapName": {
4008 "type": "string",
4009 "enum": [
4010 "summoner_rift",
4011 "howling_abyss"
4012 ]
4013 }
4014 }
4015 },
4016 "highlanderMatch": {
4017 "type": "object",
4018 "required": [
4019 "id",
4020 "name",
4021 "position",
4022 "state",
4023 "groupPosition",
4024 "input",
4025 "games",
4026 "tiebreaker",
4027 "remadeGames",
4028 "roles",
4029 "scores"
4030 ],
4031 "properties": {
4032 "id": {
4033 "type": "string",
4034 "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$",
4035 "description": "The match ID"
4036 },
4037 "name": {
4038 "type": "string"
4039 },
4040 "position": {
4041 "type": "integer"
4042 },
4043 "state": {
4044 "type": "string",
4045 "enum": [
4046 "resolved",
4047 "unresolved",
4048 "unlinked"
4049 ],
4050 "description": "Whether it is ongoing or completed.\n"
4051 },
4052 "groupPosition": {
4053 "type": "integer"
4054 },
4055 "matchType": {
4056 "$ref": "#/components/schemas/matchType"
4057 },
4058 "gameMode": {
4059 "$ref": "#/components/schemas/gameMode"
4060 },
4061 "input": {
4062 "type": "array",
4063 "items": {
4064 "allOf": [
4065 {
4066 "$ref": "#/components/schemas/simpleRoster"
4067 },
4068 {
4069 "oneOf": [
4070 {
4071 "type": "object",
4072 "properties": {
4073 "match": {
4074 "type": "string",
4075 "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$",
4076 "description": "The match ID"
4077 }
4078 }
4079 },
4080 {
4081 "type": "object",
4082 "properties": {
4083 "breakpoint": {
4084 "type": "string",
4085 "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$",
4086 "description": "The breakpoint ID"
4087 }
4088 }
4089 }
4090 ]
4091 },
4092 {
4093 "type": "object",
4094 "properties": {
4095 "standing": {
4096 "type": "integer"
4097 }
4098 }
4099 }
4100 ]
4101 }
4102 },
4103 "games": {
4104 "type": "object",
4105 "description": "The keys to this object are [UUID version 4](https://en.wikipedia.org/wiki/Universally_unique_identifier)\nrepresenting the game ID.\n\nThese are the games played in that series.\n\nThe number of properties(key and value pair) in this object will be equal to the type of series that was\nplayed. For a best of 1 there will be only 1 game, 3 for best of 3s and 5 for best of 5s.\n",
4106 "additionalProperties": {
4107 "$ref": "#/components/schemas/highlanderGame"
4108 }
4109 },
4110 "standings": {
4111 "$ref": "#/components/schemas/standings"
4112 },
4113 "tiebreaker": {
4114 "type": "boolean",
4115 "enum": [
4116 true,
4117 false
4118 ]
4119 },
4120 "remadeGames": {
4121 "type": "array",
4122 "items": {
4123 "$ref": "#/components/schemas/highlanderGame"
4124 }
4125 },
4126 "roles": {
4127 "$ref": "#/components/schemas/roles"
4128 },
4129 "scoring": {
4130 "$ref": "#/components/schemas/scoring"
4131 },
4132 "scores": {
4133 "$ref": "#/components/schemas/scores"
4134 }
4135 }
4136 },
4137 "highlanderGame": {
4138 "type": "object",
4139 "required": [
4140 "id",
4141 "name",
4142 "generatedName",
4143 "input",
4144 "scores",
4145 "revision",
4146 "roles"
4147 ],
4148 "properties": {
4149 "id": {
4150 "$ref": "#/components/schemas/gameId"
4151 },
4152 "name": {
4153 "type": "string"
4154 },
4155 "generatedName": {
4156 "type": "string"
4157 },
4158 "state": {
4159 "type": "string",
4160 "enum": [
4161 "remade"
4162 ]
4163 },
4164 "gameMode": {
4165 "$ref": "#/components/schemas/gameMode"
4166 },
4167 "input": {
4168 "type": "array",
4169 "items": {
4170 "allOf": [
4171 {
4172 "$ref": "#/components/schemas/simpleRoster"
4173 },
4174 {
4175 "oneOf": [
4176 {
4177 "type": "object",
4178 "properties": {
4179 "match": {
4180 "type": "string",
4181 "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$",
4182 "description": "The match ID"
4183 }
4184 }
4185 },
4186 {
4187 "type": "object",
4188 "properties": {
4189 "breakpoint": {
4190 "type": "string",
4191 "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$",
4192 "description": "The breakpoint ID"
4193 }
4194 }
4195 }
4196 ]
4197 },
4198 {
4199 "type": "object",
4200 "properties": {
4201 "standing": {
4202 "type": "integer"
4203 }
4204 }
4205 }
4206 ]
4207 }
4208 },
4209 "standings": {
4210 "$ref": "#/components/schemas/standings"
4211 },
4212 "scores": {
4213 "$ref": "#/components/schemas/scores"
4214 },
4215 "gameId": {
4216 "type": "string",
4217 "pattern": "^\\d+$",
4218 "description": "The numeric version of the game ID\n\nThis is what is used to access the ACS endpoint.\n"
4219 },
4220 "gameRealm": {
4221 "type": "string",
4222 "pattern": "^[A-Z]+\\d+$",
4223 "description": "The ID of the tournament realm on which the game was played on\n"
4224 },
4225 "platformId": {
4226 "type": "string",
4227 "pattern": "^[A-Z]+\\d+:\\d+$",
4228 "description": "A combination of the gameRealm and the gameId"
4229 },
4230 "revision": {
4231 "type": "integer"
4232 },
4233 "roles": {
4234 "$ref": "#/components/schemas/roles"
4235 }
4236 }
4237 },
4238 "scoring": {
4239 "type": "object",
4240 "required": [
4241 "identifier",
4242 "options"
4243 ],
4244 "properties": {
4245 "identifier": {
4246 "type": "string",
4247 "description": "**Note:** The `LegacyScoringStrategy` value has only been found in the 2015 worlds championship.",
4248 "enum": [
4249 "standard",
4250 "LegacyScoringStrategy"
4251 ]
4252 },
4253 "options": {
4254 "type": "object",
4255 "required": [
4256 "points"
4257 ],
4258 "properties": {
4259 "points": {
4260 "type": "array",
4261 "minItems": 2,
4262 "maxItems": 2,
4263 "items": {
4264 "type": "integer"
4265 }
4266 }
4267 }
4268 }
4269 }
4270 },
4271 "scores": {
4272 "type": "object",
4273 "minProperties": 0,
4274 "description": "The keys to this object are [UUID version 4](https://en.wikipedia.org/wiki/Universally_unique_identifier)\nrepresenting the roster ID.\n",
4275 "additionalProperties": {
4276 "type": "integer"
4277 }
4278 },
4279 "highlanderRecords": {
4280 "type": "array",
4281 "items": {
4282 "$ref": "#/components/schemas/highlanderRecord"
4283 }
4284 },
4285 "highlanderRecord": {
4286 "type": "object",
4287 "additionalProperties": false,
4288 "required": [
4289 "wins",
4290 "losses",
4291 "ties",
4292 "score",
4293 "roster",
4294 "tournament",
4295 "bracket",
4296 "id"
4297 ],
4298 "properties": {
4299 "wins": {
4300 "type": "integer"
4301 },
4302 "losses": {
4303 "type": "integer"
4304 },
4305 "ties": {
4306 "type": "integer"
4307 },
4308 "score": {
4309 "type": "integer"
4310 },
4311 "roster": {
4312 "type": "string",
4313 "description": "The roster's [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier)",
4314 "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
4315 },
4316 "tournament": {
4317 "type": "string",
4318 "description": "The tournament's [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier)",
4319 "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
4320 },
4321 "bracket": {
4322 "type": "string",
4323 "description": "The bracket's [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier)",
4324 "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
4325 },
4326 "id": {
4327 "type": "string",
4328 "description": "A combination of the bracket and roster UUIDs. The two are separated by a colon\\\n",
4329 "pattern": "^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}):(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12})$"
4330 }
4331 }
4332 },
4333 "highlanderTeam": {
4334 "type": "object",
4335 "additionalProperties": false,
4336 "required": [
4337 "id",
4338 "slug",
4339 "name",
4340 "guid",
4341 "teamPhotoUrl",
4342 "logoUrl",
4343 "acronym",
4344 "homeLeague",
4345 "altLogoUrl",
4346 "createdAt",
4347 "updatedAt",
4348 "bios",
4349 "foreignIds",
4350 "players",
4351 "starters",
4352 "subs"
4353 ],
4354 "properties": {
4355 "id": {
4356 "type": "integer",
4357 "description": "The team ID."
4358 },
4359 "slug": {
4360 "type": "string",
4361 "description": "URL friendly version of the team name."
4362 },
4363 "name": {
4364 "type": "string",
4365 "description": "The team name."
4366 },
4367 "guid": {
4368 "type": "string",
4369 "description": "The team's [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).",
4370 "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
4371 },
4372 "teamPhotoUrl": {
4373 "type": "string",
4374 "nullable": true
4375 },
4376 "logoUrl": {
4377 "type": "string",
4378 "description": "URL to an image of the team's logo."
4379 },
4380 "acronym": {
4381 "type": "string",
4382 "description": "The acronym form of the team name"
4383 },
4384 "homeLeague": {
4385 "type": "string",
4386 "description": "Describes the league this team participates in during the regular seasons.\n",
4387 "pattern": "^urn:rg:lolesports:global:league:league:\\d+$"
4388 },
4389 "altLogoUrl": {
4390 "type": "string",
4391 "nullable": true,
4392 "description": "Alternative URL to the team's logo."
4393 },
4394 "createdAt": {
4395 "type": "string",
4396 "description": "The date and time when this entry was created.",
4397 "format": "date-time"
4398 },
4399 "updatedAt": {
4400 "type": "string",
4401 "description": "The date and time when this entry was last updated.",
4402 "format": "date-time"
4403 },
4404 "bios": {
4405 "type": "object",
4406 "description": "Contains a description of the team translated to various languages.\n\nThe keys are presented in the format ([ISO 639-1](https://en.wikipedia.org/wiki/ISO_639-1)\nand [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))\n\n`{languageCode}_{countryCode}`\n\nThe value is a string containing\nhtml tags representing the description in that specific locale.\n",
4407 "additionalProperties": {
4408 "type": "string"
4409 }
4410 },
4411 "foreignIds": {
4412 "$ref": "#/components/schemas/foreignIds"
4413 },
4414 "players": {
4415 "type": "array",
4416 "description": "An array containing the player IDs for those belonging in that team.",
4417 "items": {
4418 "type": "integer"
4419 }
4420 },
4421 "starters": {
4422 "type": "array",
4423 "description": "An array of the player IDs of those in the main roster",
4424 "items": {
4425 "type": "integer"
4426 }
4427 },
4428 "subs": {
4429 "type": "array",
4430 "description": "An array of the player IDs of the subs.",
4431 "items": {
4432 "type": "integer"
4433 }
4434 }
4435 }
4436 },
4437 "foreignIds": {
4438 "type": "object",
4439 "properties": {
4440 "drupalId": {
4441 "type": "string"
4442 }
4443 }
4444 },
4445 "highlanderPlayer": {
4446 "type": "object",
4447 "additionalProperties": false,
4448 "required": [
4449 "id",
4450 "slug",
4451 "name",
4452 "firstName",
4453 "lastName",
4454 "roleSlug",
4455 "photoUrl",
4456 "hometown",
4457 "region",
4458 "birthdate",
4459 "createdAt",
4460 "updatedAt",
4461 "bios",
4462 "foreignIds",
4463 "socialNetworks",
4464 "champions"
4465 ],
4466 "properties": {
4467 "id": {
4468 "type": "integer",
4469 "description": "The player ID"
4470 },
4471 "slug": {
4472 "type": "string",
4473 "description": "URL friendly version of the player's in game name"
4474 },
4475 "name": {
4476 "type": "string",
4477 "description": "The player's in game name"
4478 },
4479 "firstName": {
4480 "type": "string"
4481 },
4482 "LastName": {
4483 "type": "string",
4484 "nullable": true
4485 },
4486 "roleSlug": {
4487 "type": "string",
4488 "description": "The role they usually play"
4489 },
4490 "photoUrl": {
4491 "type": "string",
4492 "nullable": true,
4493 "description": "URL to the player's photo"
4494 },
4495 "hometown": {
4496 "type": "string",
4497 "nullable": true
4498 },
4499 "region": {
4500 "type": "string"
4501 },
4502 "birthdate": {
4503 "type": "string",
4504 "format": "date-time",
4505 "nullable": true
4506 },
4507 "createdAt": {
4508 "type": "string",
4509 "description": "The date and time when this entry was created.",
4510 "format": "date-time"
4511 },
4512 "updatedAt": {
4513 "type": "string",
4514 "description": "The date and time when this entry was last updated.",
4515 "format": "date-time"
4516 },
4517 "bios": {
4518 "type": "object",
4519 "description": "Contains a description of the player translated to various languages.\n\nThe keys are presented in the format ([ISO 639-1](https://en.wikipedia.org/wiki/ISO_639-1)\nand [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))\n\n`{languageCode}_{countryCode}`\n\nThe value is a string containing\nhtml tags representing the description in that specific locale.\n",
4520 "additionalProperties": {
4521 "type": "string"
4522 }
4523 },
4524 "foreignIds": {
4525 "allOf": [
4526 {
4527 "$ref": "#/components/schemas/foreignIds"
4528 },
4529 {
4530 "type": "object",
4531 "description": "'This object may contain keys which are the names of various tournament realms.\n\n**Example:** `ESPORTSTMNT02: \"200008392\"`\n\nThe purpose of the value in those strings is unknown.'\n",
4532 "additionalProperties": {
4533 "type": "string"
4534 }
4535 }
4536 ]
4537 },
4538 "socialNetworks": {
4539 "type": "object",
4540 "description": "Contains links to the player's social media accounts.\n\nThe key is the name of the social media platform and the value is the URL\n",
4541 "additionalProperties": {
4542 "type": "string"
4543 }
4544 },
4545 "champions": {
4546 "type": "array",
4547 "items": {
4548 "type": "object",
4549 "additionalProperties": false,
4550 "required": [
4551 "id",
4552 "playerId",
4553 "championId",
4554 "championKey",
4555 "championName",
4556 "createdAt",
4557 "updatedAt"
4558 ],
4559 "properties": {
4560 "id": {
4561 "type": "integer"
4562 },
4563 "playerId": {
4564 "type": "integer",
4565 "description": "The player ID"
4566 },
4567 "championId": {
4568 "type": "integer",
4569 "description": "The champion ID"
4570 },
4571 "championKey": {
4572 "type": "string",
4573 "description": "The champion's name"
4574 },
4575 "championName": {
4576 "type": "string",
4577 "description": "The champion's name"
4578 },
4579 "createdAt": {
4580 "type": "string",
4581 "description": "The date and time when this entry was created.",
4582 "format": "date-time"
4583 },
4584 "updatedAt": {
4585 "type": "string",
4586 "description": "The date and time when this entry was last updated.",
4587 "format": "date-time"
4588 }
4589 }
4590 }
4591 }
4592 }
4593 },
4594 "highlanderTeams": {
4595 "type": "array",
4596 "description": "An array containing the teams that have participated in this league.\n",
4597 "items": {
4598 "$ref": "#/components/schemas/highlanderTeam"
4599 }
4600 },
4601 "highlanderPlayers": {
4602 "type": "array",
4603 "items": {
4604 "$ref": "#/components/schemas/highlanderPlayer"
4605 }
4606 },
4607 "baseScheduleItem": {
4608 "type": "object",
4609 "additionalProperties": false,
4610 "required": [
4611 "id",
4612 "scheduledTime",
4613 "tags",
4614 "tournament",
4615 "league"
4616 ],
4617 "properties": {
4618 "id": {
4619 "description": "The schedule item ID.",
4620 "type": "string"
4621 },
4622 "scheduledTime": {
4623 "type": "string",
4624 "format": "date-time",
4625 "description": "The time the match/event is/was scheduled to start."
4626 },
4627 "tags": {
4628 "$ref": "#/components/schemas/tags"
4629 },
4630 "tournament": {
4631 "type": "string",
4632 "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$",
4633 "description": "The tournament ID"
4634 },
4635 "league": {
4636 "type": "string",
4637 "description": "The League ID"
4638 }
4639 }
4640 },
4641 "matchScheduleItem": {
4642 "allOf": [
4643 {
4644 "$ref": "#/components/schemas/baseScheduleItem"
4645 },
4646 {
4647 "type": "object",
4648 "additionalProperties": false,
4649 "required": [
4650 "content",
4651 "match",
4652 "bracket"
4653 ],
4654 "properties": {
4655 "content": {
4656 "type": "string",
4657 "pattern": "^urn:rg:lolesports:global:highlander:tournament:(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}):match:(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12})$",
4658 "description": "Contains the tournament and match Ids for the specific match.\n"
4659 },
4660 "match": {
4661 "type": "string",
4662 "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$",
4663 "description": "The match ID"
4664 },
4665 "bracket": {
4666 "type": "string",
4667 "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$",
4668 "description": "The bracket ID"
4669 }
4670 }
4671 }
4672 ]
4673 },
4674 "eventScheduleItem": {
4675 "allOf": [
4676 {
4677 "$ref": "#/components/schemas/baseScheduleItem"
4678 },
4679 {
4680 "type": "object",
4681 "additionalProperties": false,
4682 "required": [
4683 "content"
4684 ],
4685 "properties": {
4686 "content": {
4687 "type": "string",
4688 "pattern": "^{\\\\\"imageUrl\\\\\":null,\\\\\"label\\\\\":\\\\\"(?:rebroadcast|pt1|opening-ceremony|worlds-pre-show)\\\\\"}$"
4689 }
4690 }
4691 }
4692 ]
4693 },
4694 "scheduleItem": {
4695 "oneOf": [
4696 {
4697 "$ref": "#/components/schemas/matchScheduleItem"
4698 },
4699 {
4700 "$ref": "#/components/schemas/eventScheduleItem"
4701 }
4702 ]
4703 },
4704 "tags": {
4705 "type": "object",
4706 "additionalProperties": false,
4707 "required": [
4708 "leagueLabel",
4709 "tournamentLabel",
4710 "blockLabel",
4711 "subBlockLabel",
4712 "subBlockPrefix"
4713 ],
4714 "description": "The labels are used to describe the week and day the match/event is taking place in.\nAlso, it could indicate the stage of the tournament.\n\nThe blockPrefix comes before the block Label. Same with the subBlockPrefix and the subBlockLabel.\n",
4715 "properties": {
4716 "subBlockLabel": {
4717 "type": "string"
4718 },
4719 "blockLabel": {
4720 "type": "string"
4721 },
4722 "leagueLabel": {
4723 "type": "string",
4724 "pattern": "^urn:rg:lolesports:global:league:league:\\d+$"
4725 },
4726 "blockPrefix": {
4727 "type": "string"
4728 },
4729 "subBlockPrefix": {
4730 "type": "string"
4731 },
4732 "yearLabel": {
4733 "type": "string"
4734 },
4735 "stageLabel": {
4736 "type": "string",
4737 "pattern": "^urn:rg:lolesports:global:highlander:tournament:(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}):bracket:(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12})$",
4738 "description": "Contains the tournament and bracket Ids the match/event belongs to.\n"
4739 },
4740 "tournamentLabel": {
4741 "type": "string",
4742 "pattern": "^urn:rg:lolesports:global:highlander:tournament:(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12})$",
4743 "description": "Contains the tournament ID.\n"
4744 }
4745 }
4746 }
4747 },
4748 "securitySchemes": {
4749 "apiKeyAuth": {
4750 "type": "apiKey",
4751 "description": "The key is, `0TvQnueqKa5mxJntVWt0w4LpLfEkrV1Ta8rQBb9Z`\n",
4752 "in": "header",
4753 "name": "x-api-key"
4754 }
4755 },
4756 "parameters": {
4757 "hl": {
4758 "name": "hl",
4759 "in": "query",
4760 "required": true,
4761 "schema": {
4762 "$ref": "#/components/schemas/locale"
4763 }
4764 },
4765 "leagueIds": {
4766 "name": "leagueId",
4767 "in": "query",
4768 "description": "The id(s) of the league(s) you want details of\n",
4769 "schema": {
4770 "type": "array",
4771 "items": {
4772 "type": "integer",
4773 "format": "int64"
4774 }
4775 }
4776 },
4777 "leagueId": {
4778 "name": "leagueId",
4779 "in": "query",
4780 "description": "The id of the league you want details of\n",
4781 "schema": {
4782 "type": "integer",
4783 "format": "int64"
4784 }
4785 },
4786 "highlanderLeagueId": {
4787 "name": "leagueId",
4788 "required": true,
4789 "in": "query",
4790 "description": "The id of the league you want details of",
4791 "schema": {
4792 "type": "integer",
4793 "format": "int32"
4794 }
4795 },
4796 "pageToken": {
4797 "name": "pageToken",
4798 "in": "query",
4799 "description": "Base 64 encoded string used to determine the\nnext \"page\" of data to pull\n",
4800 "schema": {
4801 "type": "string",
4802 "format": "byte"
4803 }
4804 },
4805 "tournamentIds": {
4806 "name": "tournamentId",
4807 "in": "query",
4808 "description": "The id(s) of the tournament(s) you want details ofs\n",
4809 "schema": {
4810 "type": "array",
4811 "items": {
4812 "type": "integer",
4813 "format": "int64"
4814 }
4815 }
4816 },
4817 "id": {
4818 "name": "id",
4819 "in": "query",
4820 "required": true,
4821 "description": "The id of the match that you want\n",
4822 "schema": {
4823 "type": "integer",
4824 "format": "int64"
4825 }
4826 },
4827 "teamSlugs": {
4828 "name": "id",
4829 "in": "query",
4830 "description": "The team slug(s).\n\nYou can input more than one slug.\n",
4831 "schema": {
4832 "type": "array",
4833 "items": {
4834 "type": "string"
4835 }
4836 }
4837 },
4838 "gameIds": {
4839 "name": "id",
4840 "in": "query",
4841 "description": "The game Id(s).\n\nYou can input more than one game Id(s).\n",
4842 "schema": {
4843 "type": "array",
4844 "items": {
4845 "type": "integer",
4846 "format": "int64"
4847 }
4848 }
4849 },
4850 "pathGameId": {
4851 "name": "gameId",
4852 "in": "path",
4853 "required": true,
4854 "description": "The game id of the match\n",
4855 "schema": {
4856 "type": "integer",
4857 "format": "int64"
4858 }
4859 },
4860 "startingTime": {
4861 "name": "startingTime",
4862 "in": "query",
4863 "description": "The date-time (RFC3339)\n",
4864 "schema": {
4865 "type": "string",
4866 "format": "date-time"
4867 }
4868 },
4869 "league": {
4870 "name": "league",
4871 "in": "query",
4872 "required": true,
4873 "description": "The id of the league you want details of",
4874 "schema": {
4875 "type": "string",
4876 "format": "int32"
4877 }
4878 },
4879 "teamSlug": {
4880 "name": "slug",
4881 "in": "query",
4882 "required": true,
4883 "description": "The team slug.",
4884 "schema": {
4885 "type": "string"
4886 }
4887 },
4888 "highlanderTournamentId": {
4889 "name": "tournament",
4890 "in": "query",
4891 "required": true,
4892 "description": "The tournament ID.",
4893 "schema": {
4894 "type": "string",
4895 "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
4896 }
4897 },
4898 "playerSlug": {
4899 "name": "slug",
4900 "in": "query",
4901 "required": true,
4902 "description": "The player slug.",
4903 "schema": {
4904 "type": "string"
4905 }
4906 }
4907 }
4908 }
4909}