aboutsummaryrefslogtreecommitdiff
path: root/docs/docs.go
diff options
context:
space:
mode:
Diffstat (limited to 'docs/docs.go')
-rw-r--r--docs/docs.go127
1 files changed, 55 insertions, 72 deletions
diff --git a/docs/docs.go b/docs/docs.go
index 34aa7f4..cf6c00d 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -447,19 +447,7 @@ const docTemplate = `{
447 "type": "object", 447 "type": "object",
448 "properties": { 448 "properties": {
449 "data": { 449 "data": {
450 "allOf": [ 450 "$ref": "#/definitions/models.MapSummaryResponse"
451 {
452 "$ref": "#/definitions/models.Map"
453 },
454 {
455 "type": "object",
456 "properties": {
457 "data": {
458 "$ref": "#/definitions/models.MapSummary"
459 }
460 }
461 }
462 ]
463 } 451 }
464 } 452 }
465 } 453 }
@@ -560,19 +548,7 @@ const docTemplate = `{
560 "200": { 548 "200": {
561 "description": "OK", 549 "description": "OK",
562 "schema": { 550 "schema": {
563 "allOf": [ 551 "$ref": "#/definitions/models.Response"
564 {
565 "$ref": "#/definitions/models.Response"
566 },
567 {
568 "type": "object",
569 "properties": {
570 "data": {
571 "$ref": "#/definitions/models.ProfileResponse"
572 }
573 }
574 }
575 ]
576 } 552 }
577 }, 553 },
578 "400": { 554 "400": {
@@ -817,6 +793,17 @@ const docTemplate = `{
817 } 793 }
818 }, 794 },
819 "definitions": { 795 "definitions": {
796 "models.Category": {
797 "type": "object",
798 "properties": {
799 "id": {
800 "type": "integer"
801 },
802 "name": {
803 "type": "string"
804 }
805 }
806 },
820 "models.Chapter": { 807 "models.Chapter": {
821 "type": "object", 808 "type": "object",
822 "properties": { 809 "properties": {
@@ -881,7 +868,6 @@ const docTemplate = `{
881 "chapter_name": { 868 "chapter_name": {
882 "type": "string" 869 "type": "string"
883 }, 870 },
884 "data": {},
885 "game_name": { 871 "game_name": {
886 "type": "string" 872 "type": "string"
887 }, 873 },
@@ -893,23 +879,6 @@ const docTemplate = `{
893 } 879 }
894 } 880 }
895 }, 881 },
896 "models.MapCategoryScores": {
897 "type": "object",
898 "properties": {
899 "any": {
900 "type": "integer"
901 },
902 "cm": {
903 "type": "integer"
904 },
905 "inbounds_sla": {
906 "type": "integer"
907 },
908 "no_sla": {
909 "type": "integer"
910 }
911 }
912 },
913 "models.MapHistory": { 882 "models.MapHistory": {
914 "type": "object", 883 "type": "object",
915 "properties": { 884 "properties": {
@@ -930,6 +899,23 @@ const docTemplate = `{
930 "records": {} 899 "records": {}
931 } 900 }
932 }, 901 },
902 "models.MapRoute": {
903 "type": "object",
904 "properties": {
905 "category": {
906 "$ref": "#/definitions/models.Category"
907 },
908 "description": {
909 "type": "string"
910 },
911 "score_count": {
912 "type": "integer"
913 },
914 "showcase": {
915 "type": "string"
916 }
917 }
918 },
933 "models.MapShort": { 919 "models.MapShort": {
934 "type": "object", 920 "type": "object",
935 "properties": { 921 "properties": {
@@ -944,12 +930,6 @@ const docTemplate = `{
944 "models.MapSummary": { 930 "models.MapSummary": {
945 "type": "object", 931 "type": "object",
946 "properties": { 932 "properties": {
947 "category_scores": {
948 "$ref": "#/definitions/models.MapCategoryScores"
949 },
950 "description": {
951 "type": "string"
952 },
953 "history": { 933 "history": {
954 "type": "array", 934 "type": "array",
955 "items": { 935 "items": {
@@ -959,14 +939,22 @@ const docTemplate = `{
959 "rating": { 939 "rating": {
960 "type": "number" 940 "type": "number"
961 }, 941 },
962 "routers": { 942 "routes": {
963 "type": "array", 943 "type": "array",
964 "items": { 944 "items": {
965 "type": "string" 945 "$ref": "#/definitions/models.MapRoute"
966 } 946 }
947 }
948 }
949 },
950 "models.MapSummaryResponse": {
951 "type": "object",
952 "properties": {
953 "map": {
954 "$ref": "#/definitions/models.Map"
967 }, 955 },
968 "showcase": { 956 "summary": {
969 "type": "string" 957 "$ref": "#/definitions/models.MapSummary"
970 } 958 }
971 } 959 }
972 }, 960 },
@@ -1069,29 +1057,13 @@ const docTemplate = `{
1069 "maps": { 1057 "maps": {
1070 "type": "array", 1058 "type": "array",
1071 "items": { 1059 "items": {
1072 "type": "object", 1060 "$ref": "#/definitions/models.MapShort"
1073 "properties": {
1074 "id": {
1075 "type": "integer"
1076 },
1077 "name": {
1078 "type": "string"
1079 }
1080 }
1081 } 1061 }
1082 }, 1062 },
1083 "players": { 1063 "players": {
1084 "type": "array", 1064 "type": "array",
1085 "items": { 1065 "items": {
1086 "type": "object", 1066 "$ref": "#/definitions/models.UserShort"
1087 "properties": {
1088 "steam_id": {
1089 "type": "string"
1090 },
1091 "user_name": {
1092 "type": "string"
1093 }
1094 }
1095 } 1067 }
1096 } 1068 }
1097 } 1069 }
@@ -1109,6 +1081,17 @@ const docTemplate = `{
1109 "type": "string" 1081 "type": "string"
1110 } 1082 }
1111 } 1083 }
1084 },
1085 "models.UserShort": {
1086 "type": "object",
1087 "properties": {
1088 "steam_id": {
1089 "type": "string"
1090 },
1091 "user_name": {
1092 "type": "string"
1093 }
1094 }
1112 } 1095 }
1113 } 1096 }
1114}` 1097}`