Skip to content

Commit

Permalink
password spec
Browse files Browse the repository at this point in the history
  • Loading branch information
Kleak committed May 18, 2019
1 parent c6ed666 commit 7da95a0
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
13 changes: 13 additions & 0 deletions protos/models/password.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
syntax = "proto3";

package stashall;

import "models/tag.proto";

message Password {
string id = 1;
string login = 2;
string encryptedPassword = 3;
repeated Tag tags = 4;
string description = 5;
}
10 changes: 10 additions & 0 deletions protos/services/passwords_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,17 @@ package stashall;

import "google/protobuf/empty.proto";

import "models/password.proto";

message CreatePasswordRequest {
string login = 1;
string password = 2;
}

service PasswordsService {
rpc createPassword(CreatePasswordRequest) returns (google.protobuf.Empty);

rpc editPassword(Password) returns (google.protobuf.Empty);

rpc deletePassword(Password) returns (google.protobuf.Empty);
}

0 comments on commit 7da95a0

Please sign in to comment.