generated from VLADIMIR/template
add zip
This commit is contained in:
@@ -365,6 +365,27 @@ service EveningDetectiveServer {
|
||||
};
|
||||
}
|
||||
|
||||
rpc DownloadScenarioArchive(DownloadScenarioArchiveReq) returns (google.api.HttpBody) {
|
||||
option (google.api.http) = {
|
||||
get: "/api/scenarios/{id}/archive"
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
tags : "Сценарии";
|
||||
summary: "Скачать сценарий архивом (со всеми материалами и картинками)";
|
||||
};
|
||||
}
|
||||
|
||||
rpc UploadScenarioArchive(google.api.HttpBody) returns (UploadScenarioArchiveRsp) {
|
||||
option (google.api.http) = {
|
||||
post: "/api/scenarios/archive"
|
||||
body: "*"
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
tags : "Сценарии";
|
||||
summary: "Создать сценарий из архива";
|
||||
};
|
||||
}
|
||||
|
||||
rpc AddGame(AddGameReq) returns (AddGameRsp) {
|
||||
option (google.api.http) = {
|
||||
post: "/api/games"
|
||||
@@ -847,6 +868,15 @@ message DeleteScenarioPlaceRsp {
|
||||
string error = 1;
|
||||
}
|
||||
|
||||
message DownloadScenarioArchiveReq {
|
||||
int32 id = 1;
|
||||
}
|
||||
|
||||
message UploadScenarioArchiveRsp {
|
||||
string error = 1;
|
||||
int32 id = 2;
|
||||
}
|
||||
|
||||
message AddGameReq {
|
||||
string name = 1;
|
||||
string description = 2;
|
||||
|
||||
Reference in New Issue
Block a user