You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"description": "Creates a new team using the provided team name and returns the generated team ID. Also assigns default levels and initializes a communication channel.",
18
+
"/api/game": {
19
+
"get": {
20
+
"description": "Gets the config data for the game",
26
21
"consumes": [
27
22
"application/json"
28
23
],
29
24
"produces": [
30
25
"application/json"
31
26
],
32
27
"tags": [
33
-
"Team"
28
+
"Game"
34
29
],
35
-
"summary": "Create Team",
36
-
"parameters": [
37
-
{
38
-
"description": "Payload containing the team name",
"description": "Gets the team info, using either team ID or user ID",
58
+
"consumes": [
59
+
"application/json"
60
+
],
61
+
"produces": [
62
+
"application/json"
63
+
],
64
+
"tags": [
65
+
"Team"
66
+
],
67
+
"summary": "Get team info",
68
+
"parameters": [
69
+
{
70
+
"type": "string",
71
+
"description": "ID of the team",
72
+
"name": "team_id",
73
+
"in": "query"
74
+
},
75
+
{
76
+
"type": "string",
77
+
"description": "ID of a user belonging to the team",
78
+
"name": "user_id",
79
+
"in": "query"
80
+
}
51
81
],
52
82
"responses": {
53
83
"200": {
54
-
"description": "The generated team ID",
84
+
"description": "Team retrieved successfully",
55
85
"schema": {
56
-
"type": "object",
57
-
"properties": {
58
-
"team_id": {
59
-
"type": "string"
60
-
}
61
-
}
86
+
"$ref": "#/definitions/types.Team"
62
87
}
63
88
},
64
89
"400": {
65
-
"description": "Bad Request",
90
+
"description": "Bad request",
66
91
"schema": {
67
92
"type": "object",
68
93
"properties": {
@@ -73,7 +98,7 @@ const docTemplate = `{
73
98
}
74
99
},
75
100
"500": {
76
-
"description": "Internal Server Error",
101
+
"description": "Internal server error",
77
102
"schema": {
78
103
"type": "object",
79
104
"properties": {
@@ -86,31 +111,65 @@ const docTemplate = `{
86
111
}
87
112
}
88
113
},
89
-
"/api/game": {
90
-
"get": {
91
-
"description": "Gets the config data for the game",
114
+
"/api/team/create": {
115
+
"post": {
116
+
"security": [
117
+
{
118
+
"BearerAuth": []
119
+
}
120
+
],
121
+
"description": "Creates a new team using the provided team name and returns the generated team ID. Also assigns default levels and initializes a communication channel.",
92
122
"consumes": [
93
123
"application/json"
94
124
],
95
125
"produces": [
96
126
"application/json"
97
127
],
98
128
"tags": [
99
-
"Game"
129
+
"Team"
130
+
],
131
+
"summary": "Create Team",
132
+
"parameters": [
133
+
{
134
+
"description": "Payload containing the team name",
0 commit comments