Skip to content

Instantly share code, notes, and snippets.

@garystafford
Last active April 17, 2019 15:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save garystafford/20492e0f2763bb1fe534f9cd17df09ff to your computer and use it in GitHub Desktop.
Save garystafford/20492e0f2763bb1fe534f9cd17df09ff to your computer and use it in GitHub Desktop.
syntax = "proto3";
package greeting;
import "google/api/annotations.proto";
message Greeting {
string id = 1;
string service = 2;
string message = 3;
string created = 4;
}
message GreetingRequest {
}
message GreetingResponse {
repeated Greeting greeting = 1;
}
service GreetingService {
rpc Greeting (GreetingRequest) returns (GreetingResponse) {
option (google.api.http) = {
get: "/api/v1/greeting"
};
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment