add all methods

This commit is contained in:
2025-05-17 02:57:29 +07:00
parent 282e1b3aea
commit 0e399d92eb
6 changed files with 1672 additions and 122 deletions
+211
View File
@@ -33,6 +33,92 @@
]
}
},
"/csv": {
"get": {
"operationId": "EveningDetective_GetTeamsCSV",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/evening_detectiveGetTeamsCSVRsp"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"tags": [
"EveningDetective"
]
}
},
"/game/start": {
"post": {
"operationId": "EveningDetective_GameStart",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/evening_detectiveGameStartRsp"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/evening_detectiveGameStartReq"
}
}
],
"tags": [
"EveningDetective"
]
}
},
"/game/stop": {
"post": {
"operationId": "EveningDetective_GameStop",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/evening_detectiveGameStopRsp"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/evening_detectiveGameStopReq"
}
}
],
"tags": [
"EveningDetective"
]
}
},
"/ping": {
"get": {
"operationId": "EveningDetective_Ping",
@@ -126,6 +212,76 @@
"EveningDetective"
]
}
},
"/teams/{id}": {
"get": {
"operationId": "EveningDetective_GetTeam",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/evening_detectiveGetTeamRsp"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string",
"format": "int64"
}
],
"tags": [
"EveningDetective"
]
}
},
"/teams/{teamId}/applications": {
"post": {
"operationId": "EveningDetective_GiveApplications",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/evening_detectiveGiveApplicationsRsp"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
{
"name": "teamId",
"in": "path",
"required": true,
"type": "string",
"format": "int64"
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/evening_detectiveGiveApplicationsReq"
}
}
],
"tags": [
"EveningDetective"
]
}
}
},
"definitions": {
@@ -183,6 +339,43 @@
"evening_detectiveDeleteTeamsRsp": {
"type": "object"
},
"evening_detectiveGameStartReq": {
"type": "object"
},
"evening_detectiveGameStartRsp": {
"type": "object"
},
"evening_detectiveGameStopReq": {
"type": "object",
"properties": {
"timeSeconds": {
"type": "string",
"format": "int64"
}
}
},
"evening_detectiveGameStopRsp": {
"type": "object"
},
"evening_detectiveGetTeamRsp": {
"type": "object",
"properties": {
"actions": {
"type": "array",
"items": {
"$ref": "#/definitions/evening_detectiveAddActionRsp"
}
}
}
},
"evening_detectiveGetTeamsCSVRsp": {
"type": "object",
"properties": {
"data": {
"type": "string"
}
}
},
"evening_detectiveGetTeamsRsp": {
"type": "object",
"properties": {
@@ -194,6 +387,24 @@
}
}
},
"evening_detectiveGiveApplicationsReq": {
"type": "object",
"properties": {
"teamId": {
"type": "string",
"format": "int64"
},
"applications": {
"type": "array",
"items": {
"$ref": "#/definitions/evening_detectiveApplication"
}
}
}
},
"evening_detectiveGiveApplicationsRsp": {
"type": "object"
},
"evening_detectivePingRsp": {
"type": "object"
},