2019-06-05 12:22:28 +03:00
|
|
|
syntax = "proto3";
|
|
|
|
|
2020-04-14 16:25:09 +03:00
|
|
|
import "google/api/annotations.proto";
|
|
|
|
|
2019-06-05 12:22:28 +03:00
|
|
|
service Test {
|
2020-04-14 16:25:09 +03:00
|
|
|
rpc Call(Request) returns (Response) {
|
|
|
|
option (google.api.http) = { post: "/api/v0/test/call/{uuid}"; body:"*"; };
|
|
|
|
};
|
2020-04-29 15:23:10 +03:00
|
|
|
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-05 12:22:28 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
message Request {
|
2020-04-14 16:25:09 +03:00
|
|
|
string uuid = 1;
|
|
|
|
string name = 2;
|
2019-06-05 12:22:28 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
message Response {
|
|
|
|
string msg = 1;
|
|
|
|
}
|