2022-03-21 13:08:38 +03:00
|
|
|
syntax = "proto3";
|
|
|
|
|
2023-03-04 23:30:53 +03:00
|
|
|
package test.v1.proto;
|
2022-03-21 13:08:38 +03:00
|
|
|
|
|
|
|
option go_package = "go.unistack.org/micro-tests/server/combo/proto;pb";
|
|
|
|
|
|
|
|
import "tag/tag.proto";
|
|
|
|
import "api/annotations.proto";
|
|
|
|
import "openapiv3/annotations.proto";
|
|
|
|
import "google/protobuf/wrappers.proto";
|
|
|
|
|
|
|
|
service Test {
|
|
|
|
rpc Call(CallReq) returns (CallRsp) {
|
|
|
|
option (micro.openapiv3.openapiv3_operation) = {
|
|
|
|
operation_id: "Call";
|
|
|
|
responses: {
|
|
|
|
default: {
|
|
|
|
reference: {
|
2023-03-04 23:30:53 +03:00
|
|
|
_ref: ".test.v1.proto.Error";
|
2022-03-21 13:08:38 +03:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2023-03-04 23:30:53 +03:00
|
|
|
option (micro.api.http) = { post: "/Call"; body: "*"; };
|
2022-03-21 13:08:38 +03:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
message CallReq {
|
|
|
|
string req = 1;
|
|
|
|
};
|
|
|
|
|
|
|
|
message CallRsp {
|
|
|
|
string rsp = 1;
|
|
|
|
};
|
|
|
|
|
|
|
|
message Error {
|
|
|
|
string err = 1;
|
|
|
|
};
|