Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2021-02-27 19:51:56 +03:00
parent 2f268806ef
commit bca1d3570f
10 changed files with 108 additions and 342 deletions

View File

@@ -3,12 +3,12 @@ syntax = "proto3";
package github;
option go_package = "github.com//unistack-org/micro-tests/client/http/proto;pb";
import "google/api/annotations.proto";
import "protoc-gen-openapiv2/options/annotations.proto";
import "api/annotations.proto";
import "openapiv2/annotations.proto";
service Github {
rpc LookupUser(LookupUserReq) returns (LookupUserRsp) {
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
option (micro.openapiv2.openapiv2_operation) = {
operation_id: "LookupUser";
responses: {
key: "default";
@@ -18,7 +18,7 @@ service Github {
}
}
};
option (google.api.http) = { get: "/users/{username}"; };
option (micro.api.http) = { get: "/users/{username}"; };
};
};
message LookupUserReq {