add update status methods

This commit is contained in:
2026-07-25 23:52:46 +07:00
parent e4658a4a79
commit 6057ff38a3
8 changed files with 723 additions and 70 deletions
@@ -388,6 +388,46 @@
]
}
},
"/api/scenarios/{id}/draft": {
"put": {
"summary": "Снять с публикации сценарий",
"operationId": "EveningDetectiveServer_DraftScenario",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/evening_detective_serverDraftScenarioRsp"
}
},
"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/EveningDetectiveServerDraftScenarioBody"
}
}
],
"tags": [
"Сценарии"
]
}
},
"/api/scenarios/{id}/places": {
"post": {
"summary": "Создать точку сценария",
@@ -510,6 +550,46 @@
]
}
},
"/api/scenarios/{id}/public": {
"put": {
"summary": "Опубликовать сценарий",
"operationId": "EveningDetectiveServer_PublicScenario",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/evening_detective_serverPublicScenarioRsp"
}
},
"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/EveningDetectiveServerPublicScenarioBody"
}
}
],
"tags": [
"Сценарии"
]
}
},
"/api/test/echo": {
"post": {
"summary": "Проверить обработку данных",
@@ -781,6 +861,12 @@
}
}
},
"EveningDetectiveServerDraftScenarioBody": {
"type": "object"
},
"EveningDetectiveServerPublicScenarioBody": {
"type": "object"
},
"EveningDetectiveServerUpdateScenarioBody": {
"type": "object",
"properties": {
@@ -915,6 +1001,14 @@
}
}
},
"evening_detective_serverDraftScenarioRsp": {
"type": "object",
"properties": {
"error": {
"type": "string"
}
}
},
"evening_detective_serverEchoRsp": {
"type": "object",
"properties": {
@@ -1077,6 +1171,14 @@
}
}
},
"evening_detective_serverPublicScenarioRsp": {
"type": "object",
"properties": {
"error": {
"type": "string"
}
}
},
"evening_detective_serverRefreshPasswordReq": {
"type": "object",
"properties": {