generated from VLADIMIR/template
gen methods
This commit is contained in:
@@ -799,6 +799,219 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/api/teams": {
|
||||
"post": {
|
||||
"summary": "Создать команду",
|
||||
"operationId": "EveningDetectiveServer_AddTeam",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "A successful response.",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/evening_detective_serverAddTeamRsp"
|
||||
}
|
||||
},
|
||||
"default": {
|
||||
"description": "An unexpected error response.",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/rpcStatus"
|
||||
}
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/evening_detective_serverAddTeamReq"
|
||||
}
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"Команда"
|
||||
]
|
||||
}
|
||||
},
|
||||
"/api/teams/{id}": {
|
||||
"delete": {
|
||||
"summary": "Удалить команду",
|
||||
"operationId": "EveningDetectiveServer_DeleteTeam",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "A successful response.",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/evening_detective_serverDeleteTeamRsp"
|
||||
}
|
||||
},
|
||||
"default": {
|
||||
"description": "An unexpected error response.",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/rpcStatus"
|
||||
}
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"name": "id",
|
||||
"in": "path",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"format": "int64"
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"Команда"
|
||||
]
|
||||
},
|
||||
"put": {
|
||||
"summary": "Обновить команду",
|
||||
"operationId": "EveningDetectiveServer_UpdateTeam",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "A successful response.",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/evening_detective_serverUpdateTeamRsp"
|
||||
}
|
||||
},
|
||||
"default": {
|
||||
"description": "An unexpected error response.",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/rpcStatus"
|
||||
}
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"name": "id",
|
||||
"in": "path",
|
||||
"required": true,
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
},
|
||||
{
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/EveningDetectiveServerUpdateTeamBody"
|
||||
}
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"Команда"
|
||||
]
|
||||
}
|
||||
},
|
||||
"/api/teams/{id}/actions": {
|
||||
"get": {
|
||||
"summary": "Получить ходы",
|
||||
"operationId": "EveningDetectiveServer_GetTeamActions",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "A successful response.",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/evening_detective_serverGetTeamActionsRsp"
|
||||
}
|
||||
},
|
||||
"default": {
|
||||
"description": "An unexpected error response.",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/rpcStatus"
|
||||
}
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"name": "id",
|
||||
"in": "path",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"format": "int64"
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"Ходы"
|
||||
]
|
||||
},
|
||||
"post": {
|
||||
"summary": "Сделать ход",
|
||||
"operationId": "EveningDetectiveServer_AddTeamAction",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "A successful response.",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/evening_detective_serverAddTeamActionRsp"
|
||||
}
|
||||
},
|
||||
"default": {
|
||||
"description": "An unexpected error response.",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/rpcStatus"
|
||||
}
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"name": "id",
|
||||
"in": "path",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"format": "int64"
|
||||
},
|
||||
{
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/EveningDetectiveServerAddTeamActionBody"
|
||||
}
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"Ходы"
|
||||
]
|
||||
}
|
||||
},
|
||||
"/api/teams/{id}/applications": {
|
||||
"post": {
|
||||
"summary": "Выдать улику",
|
||||
"operationId": "EveningDetectiveServer_GiveTeamApplications",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "A successful response.",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/evening_detective_serverGiveTeamApplicationsRsp"
|
||||
}
|
||||
},
|
||||
"default": {
|
||||
"description": "An unexpected error response.",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/rpcStatus"
|
||||
}
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"name": "id",
|
||||
"in": "path",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"format": "int64"
|
||||
},
|
||||
{
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/EveningDetectiveServerGiveTeamApplicationsBody"
|
||||
}
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"Команда"
|
||||
]
|
||||
}
|
||||
},
|
||||
"/api/test/echo": {
|
||||
"post": {
|
||||
"summary": "Проверить обработку данных",
|
||||
@@ -1054,6 +1267,14 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"EveningDetectiveServerAddTeamActionBody": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"code": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"EveningDetectiveServerAddUserRoleBody": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -1073,6 +1294,14 @@
|
||||
"EveningDetectiveServerDraftScenarioBody": {
|
||||
"type": "object"
|
||||
},
|
||||
"EveningDetectiveServerGiveTeamApplicationsBody": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"EveningDetectiveServerPublicScenarioBody": {
|
||||
"type": "object"
|
||||
},
|
||||
@@ -1117,6 +1346,14 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"EveningDetectiveServerUpdateTeamBody": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"apiHttpBody": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -1199,6 +1436,34 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"evening_detective_serverAddTeamActionRsp": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"error": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"evening_detective_serverAddTeamReq": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"gameId": {
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"evening_detective_serverAddTeamRsp": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"error": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"evening_detective_serverAddUserRoleRsp": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -1242,6 +1507,14 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"evening_detective_serverDeleteTeamRsp": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"error": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"evening_detective_serverDeleteUserRoleRsp": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -1408,6 +1681,21 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"evening_detective_serverGetTeamActionsRsp": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"error": {
|
||||
"type": "string"
|
||||
},
|
||||
"places": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/evening_detective_serverPlace"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"evening_detective_serverGetUserByIdRsp": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -1434,6 +1722,14 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"evening_detective_serverGiveTeamApplicationsRsp": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"error": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"evening_detective_serverKey": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -1663,6 +1959,14 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"evening_detective_serverUpdateTeamRsp": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"error": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"evening_detective_serverUploadFileReq": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
||||
Reference in New Issue
Block a user