Created
January 12, 2019 16:25
-
-
Save SC7639/ce94033ee13e68abd1cc1eebbaf9b4e3 to your computer and use it in GitHub Desktop.
Profobuf Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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