aboutsummaryrefslogtreecommitdiff
path: root/docs/swagger.json
diff options
context:
space:
mode:
Diffstat (limited to 'docs/swagger.json')
-rw-r--r--docs/swagger.json127
1 files changed, 55 insertions, 72 deletions
diff --git a/docs/swagger.json b/docs/swagger.json
index 8491d2e..f2ed3f0 100644
--- a/docs/swagger.json
+++ b/docs/swagger.json
@@ -440,19 +440,7 @@
440 "type": "object", 440 "type": "object",
441 "properties": { 441 "properties": {
442 "data": { 442 "data": {
443 "allOf": [ 443 "$ref": "#/definitions/models.MapSummaryResponse"
444 {
445 "$ref": "#/definitions/models.Map"
446 },
447 {
448 "type": "object",
449 "properties": {
450 "data": {
451 "$ref": "#/definitions/models.MapSummary"
452 }
453 }
454 }
455 ]
456 } 444 }
457 } 445 }
458 } 446 }
@@ -553,19 +541,7 @@
553 "200": { 541 "200": {
554 "description": "OK", 542 "description": "OK",
555 "schema": { 543 "schema": {
556 "allOf": [ 544 "$ref": "#/definitions/models.Response"
557 {
558 "$ref": "#/definitions/models.Response"
559 },
560 {
561 "type": "object",
562 "properties": {
563 "data": {
564 "$ref": "#/definitions/models.ProfileResponse"
565 }
566 }
567 }
568 ]
569 } 545 }
570 }, 546 },
571 "400": { 547 "400": {
@@ -810,6 +786,17 @@
810 } 786 }
811 }, 787 },
812 "definitions": { 788 "definitions": {
789 "models.Category": {
790 "type": "object",
791 "properties": {
792 "id": {
793 "type": "integer"
794 },
795 "name": {
796 "type": "string"
797 }
798 }
799 },
813 "models.Chapter": { 800 "models.Chapter": {
814 "type": "object", 801 "type": "object",
815 "properties": { 802 "properties": {
@@ -874,7 +861,6 @@
874 "chapter_name": { 861 "chapter_name": {
875 "type": "string" 862 "type": "string"
876 }, 863 },
877 "data": {},
878 "game_name": { 864 "game_name": {
879 "type": "string" 865 "type": "string"
880 }, 866 },
@@ -886,23 +872,6 @@
886 } 872 }
887 } 873 }
888 }, 874 },
889 "models.MapCategoryScores": {
890 "type": "object",
891 "properties": {
892 "any": {
893 "type": "integer"
894 },
895 "cm": {
896 "type": "integer"
897 },
898 "inbounds_sla": {
899 "type": "integer"
900 },
901 "no_sla": {
902 "type": "integer"
903 }
904 }
905 },
906 "models.MapHistory": { 875 "models.MapHistory": {
907 "type": "object", 876 "type": "object",
908 "properties": { 877 "properties": {
@@ -923,6 +892,23 @@
923 "records": {} 892 "records": {}
924 } 893 }
925 }, 894 },
895 "models.MapRoute": {
896 "type": "object",
897 "properties": {
898 "category": {
899 "$ref": "#/definitions/models.Category"
900 },
901 "description": {
902 "type": "string"
903 },
904 "score_count": {
905 "type": "integer"
906 },
907 "showcase": {
908 "type": "string"
909 }
910 }
911 },
926 "models.MapShort": { 912 "models.MapShort": {
927 "type": "object", 913 "type": "object",
928 "properties": { 914 "properties": {
@@ -937,12 +923,6 @@
937 "models.MapSummary": { 923 "models.MapSummary": {
938 "type": "object", 924 "type": "object",
939 "properties": { 925 "properties": {
940 "category_scores": {
941 "$ref": "#/definitions/models.MapCategoryScores"
942 },
943 "description": {
944 "type": "string"
945 },
946 "history": { 926 "history": {
947 "type": "array", 927 "type": "array",
948 "items": { 928 "items": {
@@ -952,14 +932,22 @@
952 "rating": { 932 "rating": {
953 "type": "number" 933 "type": "number"
954 }, 934 },
955 "routers": { 935 "routes": {
956 "type": "array", 936 "type": "array",
957 "items": { 937 "items": {
958 "type": "string" 938 "$ref": "#/definitions/models.MapRoute"
959 } 939 }
940 }
941 }
942 },
943 "models.MapSummaryResponse": {
944 "type": "object",
945 "properties": {
946 "map": {
947 "$ref": "#/definitions/models.Map"
960 }, 948 },
961 "showcase": { 949 "summary": {
962 "type": "string" 950 "$ref": "#/definitions/models.MapSummary"
963 } 951 }
964 } 952 }
965 }, 953 },
@@ -1062,29 +1050,13 @@
1062 "maps": { 1050 "maps": {
1063 "type": "array", 1051 "type": "array",
1064 "items": { 1052 "items": {
1065 "type": "object", 1053 "$ref": "#/definitions/models.MapShort"
1066 "properties": {
1067 "id": {
1068 "type": "integer"
1069 },
1070 "name": {
1071 "type": "string"
1072 }
1073 }
1074 } 1054 }
1075 }, 1055 },
1076 "players": { 1056 "players": {
1077 "type": "array", 1057 "type": "array",
1078 "items": { 1058 "items": {
1079 "type": "object", 1059 "$ref": "#/definitions/models.UserShort"
1080 "properties": {
1081 "steam_id": {
1082 "type": "string"
1083 },
1084 "user_name": {
1085 "type": "string"
1086 }
1087 }
1088 } 1060 }
1089 } 1061 }
1090 } 1062 }
@@ -1102,6 +1074,17 @@
1102 "type": "string" 1074 "type": "string"
1103 } 1075 }
1104 } 1076 }
1077 },
1078 "models.UserShort": {
1079 "type": "object",
1080 "properties": {
1081 "steam_id": {
1082 "type": "string"
1083 },
1084 "user_name": {
1085 "type": "string"
1086 }
1087 }
1105 } 1088 }
1106 } 1089 }
1107} \ No newline at end of file 1090} \ No newline at end of file