Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Commit

Permalink
add repeated url path params
Browse files Browse the repository at this point in the history
  • Loading branch information
ringsaturn committed Jul 15, 2021
1 parent ace2b61 commit dfcbb4e
Show file tree
Hide file tree
Showing 7 changed files with 429 additions and 18 deletions.
160 changes: 147 additions & 13 deletions api/helloworld/v1/greeter.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

129 changes: 129 additions & 0 deletions api/helloworld/v1/greeter.pb.validate.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 19 additions & 5 deletions api/helloworld/v1/greeter.proto
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,20 @@ option java_multiple_files = true;
option java_package = "dev.kratos.api.helloworld.v1";
option java_outer_classname = "HelloWorldProtoV1";


// The greeting service definition.
service Greeter {
// Sends a greeting
rpc SayHello (HelloRequest) returns (HelloReply) {
option (google.api.http) = {
get: "/helloworld/{name}"
};
}
rpc SayHello(HelloRequest) returns (HelloReply) {
option (google.api.http) = {
get: "/helloworld/{name}"
};
}
rpc GetName(GetRequest) returns (GetResponse) {
option (google.api.http) = {
get: "/foo/{coordinates}"
};
}
}

// The request message containing the user's name.
Expand All @@ -28,3 +34,11 @@ message HelloRequest {
message HelloReply {
string message = 1;
}

message GetRequest {
repeated float coordinates = 1;
}

message GetResponse {
repeated float coordinates = 1;
}
Loading

0 comments on commit dfcbb4e

Please sign in to comment.