Created
September 10, 2020 23:56
-
-
Save leleofg/9118244769370b771f1d2e7b303d203c to your computer and use it in GitHub Desktop.
User Protobuf file
This file contains 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"; | |
service UserService { | |
rpc createUser (User) returns (User) {} | |
rpc getUserById (UserId) returns (User) {} | |
} | |
message User { | |
int32 id = 1; | |
string email = 2; | |
string username = 3; | |
string password = 4; | |
} | |
message UserId { | |
int32 id = 1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment