blob: 465a0c57d26c05f641f733c0cd6c7de618721064 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
syntax = "proto3";
package api;
import "google/api/annotations.proto";
import "google/protobuf/timestamp.proto";
message PingMessage {
string greeting = 1;
}
message Item {
int32 id = 1;
string field = 2;
string field2 = 3;
google.protobuf.Timestamp created = 5;
google.protobuf.Timestamp last_updated = 6;
}
service Ping {
rpc SayHello(PingMessage) returns (PingMessage) {
option (google.api.http) = {
post: "/1/ping"
body: "*"
};
}
}
|