Created
February 17, 2019 11:13
-
-
Save ahmagdy/338d2e57d085599a72e5d74e993a9f24 to your computer and use it in GitHub Desktop.
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 accountproto; | |
message CreateAccountRequest{ | |
string username = 1; | |
string email = 2; | |
} | |
message CreateAccountResponse{ | |
string id = 1; | |
} | |
message GetAccountInformationRequest{ | |
string id = 1; | |
} | |
message GetAccountInformationResponse{ | |
string id = 1; | |
string username = 2; | |
string email = 3; | |
} | |
service AccountService{ | |
rpc CreateAccount(CreateAccountRequest) returns (CreateAccountResponse){} | |
rpc GetAccountInformation(GetAccountInformationRequest) returns (GetAccountInformationResponse){} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment