Skip to content

Commit

Permalink
spec accounts service
Browse files Browse the repository at this point in the history
  • Loading branch information
Kleak committed May 17, 2019
1 parent 3d797a3 commit 339f94d
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions protos/services/accounts_service.proto
Original file line number Diff line number Diff line change
@@ -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);
}

0 comments on commit 339f94d

Please sign in to comment.