2020-09-29 11:15:29 +03:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package helloworld;
|
|
|
|
|
2021-10-27 01:24:35 +03:00
|
|
|
option go_package = "go.unistack.org/micro-tests/server/grpc/proto;helloworld";
|
|
|
|
import "api/annotations.proto";
|
2020-12-29 13:44:22 +03:00
|
|
|
|
2020-09-29 11:15:29 +03:00
|
|
|
service Test {
|
2021-01-10 10:18:42 +03:00
|
|
|
rpc Call(Request) returns (Response) {
|
2021-10-27 01:24:35 +03:00
|
|
|
option (micro.api.http) = { post: "/api/v0/test/call/TEST"; body: "*"; };
|
2021-01-10 10:18:42 +03:00
|
|
|
};
|
2020-09-29 11:15:29 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
message Request {
|
|
|
|
string uuid = 1;
|
|
|
|
string name = 2;
|
2020-12-29 13:44:22 +03:00
|
|
|
|
|
|
|
Broken broken = 4;
|
|
|
|
};
|
|
|
|
|
|
|
|
message Broken {
|
|
|
|
string field = 1;
|
|
|
|
};
|
2020-09-29 11:15:29 +03:00
|
|
|
|
|
|
|
message Response {
|
|
|
|
string msg = 1;
|
2020-12-29 13:44:22 +03:00
|
|
|
Broken broken = 4;
|
|
|
|
};
|