diff --git a/protos/services/accounts_service.proto b/protos/services/accounts_service.proto new file mode 100644 index 0000000..d9943d4 --- /dev/null +++ b/protos/services/accounts_service.proto @@ -0,0 +1,19 @@ +syntax = "proto3"; + +package stashall; + +import "google/protobuf/empty.proto"; + +message CreateAccountRequest { + string email = 1; + string password = 2; +} + +message MeResponse { string email = 1; } + +service AccountsService { + rpc createAccount(CreateAccountRequest) returns (google.protobuf.Empty); + + /// The client must send the Authorization metadata + rpc me(google.protobuf.Empty) returns (MeResponse); +} \ No newline at end of file