Skip to content

Commit

Permalink
Merge pull request #28 from rushio-consulting/spec-tags-service
Browse files Browse the repository at this point in the history
spec tags service
  • Loading branch information
bwnyasse authored May 18, 2019
2 parents 310fdc7 + 1e7332a commit 99b7eaa
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
10 changes: 10 additions & 0 deletions protos/models/tag.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
syntax = "proto3";

package stashall;

message Tag {
string id = 1;
string label = 2;
string description = 3;
string color = 4;
}
24 changes: 24 additions & 0 deletions protos/services/tags_service.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
syntax = "proto3";

package stashall;

import "google/protobuf/empty.proto";
import "models/tag.proto";

message CreateTagRequest {
string label = 1;
string color = 2;
}

message DeleteTagRequest { string id = 1; }

service TagsService {
/// The client must send the Authorization metadata
rpc createTag(CreateTagRequest) returns (Tag);

/// The client must send the Authorization metadata
rpc editTag(Tag) returns (google.protobuf.Empty);

/// The client must send the Authorization metadata
rpc deleteTag(DeleteTagRequest) returns (google.protobuf.Empty);
}

0 comments on commit 99b7eaa

Please sign in to comment.