generated from VLADIMIR/template
add game
This commit is contained in:
@@ -45,6 +45,12 @@ service EveningDetective {
|
||||
};
|
||||
}
|
||||
|
||||
rpc GetGame(GetGameReq) returns (GetGameRsp) {
|
||||
option (google.api.http) = {
|
||||
get: "/game"
|
||||
};
|
||||
}
|
||||
|
||||
rpc GameStart(GameStartReq) returns (GameStartRsp) {
|
||||
option (google.api.http) = {
|
||||
post: "/game/start",
|
||||
@@ -137,6 +143,12 @@ message Action {
|
||||
repeated Application applications = 5;
|
||||
}
|
||||
|
||||
message GetGameReq {}
|
||||
|
||||
message GetGameRsp {
|
||||
string state = 1;
|
||||
}
|
||||
|
||||
message GameStartReq {}
|
||||
|
||||
message GameStartRsp {}
|
||||
|
||||
@@ -1,3 +1,15 @@
|
||||
### Получение игры
|
||||
|
||||
GET http://localhost:8090/game
|
||||
|
||||
### Старт игры
|
||||
|
||||
POST http://localhost:8090/game/start
|
||||
|
||||
### Стоп игры
|
||||
|
||||
POST http://localhost:8090/game/stop
|
||||
|
||||
### Получение списка комад
|
||||
|
||||
GET http://localhost:8090/teams
|
||||
|
||||
Reference in New Issue
Block a user