generated from VLADIMIR/template
add update status methods
This commit is contained in:
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user