Skip to content

Commit

Permalink
Merge pull request #32 from rushio-consulting/spec-passwords-service
Browse files Browse the repository at this point in the history
password spec
  • Loading branch information
bwnyasse authored May 30, 2019
2 parents 0458644 + a6140a1 commit a346a06
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ packages:
name: async
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.0"
version: "2.2.0"
boolean_selector:
dependency: transitive
description:
Expand Down Expand Up @@ -150,7 +150,7 @@ packages:
name: quiver
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.2"
version: "2.0.3"
sky_engine:
dependency: transitive
description: flutter
Expand Down Expand Up @@ -197,7 +197,7 @@ packages:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.4"
version: "0.2.5"
typed_data:
dependency: transitive
description:
Expand Down
14 changes: 14 additions & 0 deletions protos/models/password.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
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;
string url = 6;
}
20 changes: 20 additions & 0 deletions protos/services/passwords_service.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
syntax = "proto3";

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 a346a06

Please sign in to comment.