generated from VLADIMIR/template
add play
This commit is contained in:
@@ -489,6 +489,46 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/api/games/{id}/play": {
|
||||
"put": {
|
||||
"summary": "Продолжить игру",
|
||||
"operationId": "EveningDetectiveServer_PlayGame",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "A successful response.",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/evening_detective_serverPlayGameRsp"
|
||||
}
|
||||
},
|
||||
"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/EveningDetectiveServerPlayGameBody"
|
||||
}
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"Игры"
|
||||
]
|
||||
}
|
||||
},
|
||||
"/api/games/{id}/reset": {
|
||||
"put": {
|
||||
"summary": "Сбросить игру",
|
||||
@@ -1521,6 +1561,9 @@
|
||||
"EveningDetectiveServerPauseGameBody": {
|
||||
"type": "object"
|
||||
},
|
||||
"EveningDetectiveServerPlayGameBody": {
|
||||
"type": "object"
|
||||
},
|
||||
"EveningDetectiveServerPublicScenarioBody": {
|
||||
"type": "object"
|
||||
},
|
||||
@@ -2070,6 +2113,14 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"evening_detective_serverPlayGameRsp": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"error": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"evening_detective_serverPublicScenarioRsp": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
||||
Reference in New Issue
Block a user