aboutsummaryrefslogtreecommitdiff
path: root/api/api.proto
blob: 796e34b61ab8f22885377e59c1a6115fd5f2bb92 (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
syntax = "proto3";
package api;

import "google/api/annotations.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 = 5;
}

service Ping {
  rpc SayHello(PingMessage) returns (PingMessage) {
    option (google.api.http) = {
        post: "/1/ping"
        body: "*"
    };
  }
}