generated from VLADIMIR/template
45 lines
660 B
Protocol Buffer
45 lines
660 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package crabs.evening_detective;
|
|
|
|
import "google/api/annotations.proto";
|
|
|
|
option go_package = "pkg/proto";
|
|
|
|
service EveningDetective {
|
|
rpc Ping(PingReq) returns (PingRsp) {
|
|
option (google.api.http) = {
|
|
get: "/ping"
|
|
};
|
|
}
|
|
|
|
rpc AddTeams(AddTeamsReq) returns (AddTeamsRsp) {
|
|
option (google.api.http) = {
|
|
post: "/teams",
|
|
body: "*"
|
|
};
|
|
}
|
|
}
|
|
|
|
message PingReq {}
|
|
|
|
message PingRsp {}
|
|
|
|
message AddTeamsReq {
|
|
repeated Team teams = 1;
|
|
}
|
|
|
|
message Team {
|
|
string Name = 1;
|
|
}
|
|
|
|
message AddTeamsRsp {
|
|
repeated TeamFull teams = 1;
|
|
}
|
|
|
|
message TeamFull {
|
|
int64 id = 1;
|
|
string Name = 2;
|
|
string Password = 3;
|
|
}
|