From 339f94d1b710239af8ed9f022d06c1d247861cbb Mon Sep 17 00:00:00 2001 From: kevin Date: Fri, 17 May 2019 10:49:03 +0200 Subject: [PATCH] spec accounts service --- protos/services/accounts_service.proto | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 protos/services/accounts_service.proto 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