Skip to content

Instantly share code, notes, and snippets.

@SC7639
Created January 12, 2019 16:25
Show Gist options
  • Save SC7639/ce94033ee13e68abd1cc1eebbaf9b4e3 to your computer and use it in GitHub Desktop.
Save SC7639/ce94033ee13e68abd1cc1eebbaf9b4e3 to your computer and use it in GitHub Desktop.
Profobuf Example
syntax = "proto3";
package service;
message UserRequest {
string apiToken = 1;
}
message UserResponse {
int32 id = 1;
string email = 2;
string forename = 3;
string surname = 4;
string api_token = 6;
string updated_at = 13;
string permissionGroups = 15;
string menu = 16;
}
service UserService {
rpc GetUser (UserRequest) returns (UserResponse);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment