Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions echopb/service.pb.go

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

3 changes: 1 addition & 2 deletions echopb/service.pb.gw.go

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

4 changes: 3 additions & 1 deletion echopb/service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@ package echopb;

import "google/api/annotations.proto";

// EchoMessage is the message text of an Echo() request and response.
message EchoMessage {
string value = 1;
}

service EchoService {
rpc Echo(EchoMessage) returns (EchoMessage) {
// Echo returns the received message back to the caller.
rpc Echo(EchoMessage) returns (EchoMessage) {
option (google.api.http) = {
post: "/v1/echo"
body: "*"
Expand Down
4 changes: 3 additions & 1 deletion echopb/service.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"paths": {
"/v1/echo": {
"post": {
"summary": "Echo returns the received message back to the caller.",
"operationId": "Echo",
"responses": {
"200": {
Expand Down Expand Up @@ -49,7 +50,8 @@
"value": {
"type": "string"
}
}
},
"description": "EchoMessage is the message text of an Echo() request and response."
}
}
}
4 changes: 3 additions & 1 deletion echopb/swagger.pb.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ swagger = `{
"paths": {
"/v1/echo": {
"post": {
"summary": "Echo returns the received message back to the caller.",
"operationId": "Echo",
"responses": {
"200": {
Expand Down Expand Up @@ -52,7 +53,8 @@ swagger = `{
"value": {
"type": "string"
}
}
},
"description": "EchoMessage is the message text of an Echo() request and response."
}
}
}
Expand Down