summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/pseudomuto/protokit/examples/jsonator/sample2.proto
blob: c87ae4950ba30d4381342630f396c931ebf66f98 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
syntax = "proto3";

import "google/api/annotations.proto";
import "google/protobuf/empty.proto";

// This is just another sample proto for demonstrating how to use this library.
//
// There's also nothing "fancy" here.
package com.jsonator.v2;

service SampleService {
  rpc RandomSample(google.protobuf.Empty) returns (Sample) {
    option (google.api.http).get = "/v2/sample";
  }
}

message Sample {
  int64 id = 1;
}