File: sample2.proto

package info (click to toggle)
golang-github-pseudomuto-protokit 0.2.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 320 kB
  • sloc: makefile: 61
file content (19 lines) | stat: -rw-r--r-- 421 bytes parent folder | download | duplicates (2)
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;
}