You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
752 B

syntax="proto3";
import "google/protobuf/timestamp.proto";
import "gogoproto/gogo.proto";
// import "validate/validate.proto";
import "google/api/annotations.proto";
import "google/protobuf/empty.proto";
option go_package = "moredoc/api/v1;v1";
message PingRequest{
string name = 1;
}
message PongReply{
string name = 1;
google.protobuf.Timestamp created_at = 2 [(gogoproto.stdtime) = true];
}
service HealthAPI{
rpc Health (google.protobuf.Empty) returns (google.protobuf.Empty){
option (google.api.http) = {
get: '/health',
};
}
rpc Ping (PingRequest) returns (PongReply){
option (google.api.http) = {
get: '/api/v1/ping',
};
}
}