micro/server/grpc/proto/test.proto

25 lines
572 B
Protocol Buffer
Raw Normal View History

2019-06-03 18:44:43 +01:00
syntax = "proto3";
import "google/api/annotations.proto";
2019-06-05 10:22:28 +01:00
service Test {
rpc Call(Request) returns (Response) {
option (google.api.http) = { post: "/api/v0/test/call/{uuid}"; body:"*"; };
};
rpc CallPcre(Request) returns (Response) {
option (google.api.http) = { post: "^/api/v0/test/call/pcre/?$"; body:"*"; };
};
rpc CallPcreInvalid(Request) returns (Response) {
option (google.api.http) = { post: "^/api/v0/test/call/pcre/invalid/?"; body:"*"; };
};
2019-06-03 18:44:43 +01:00
}
message Request {
string uuid = 1;
string name = 2;
2019-06-03 18:44:43 +01:00
}
message Response {
string msg = 1;
}