Skip to content

Commit

Permalink
spec tags service
Browse files Browse the repository at this point in the history
will close #6
  • Loading branch information
Kleak committed May 17, 2019
1 parent 3d797a3 commit 7fa2201
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions protos/services/tags_service.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
syntax = "proto3";

package stashall;

import "google/protobuf/empty.proto";

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

message CreateTagResponse {
string id = 1;
string label = 2;
string color = 3;
}

message EditTagRequest {
string id = 1;
string label = 2;
string color = 3;
}

message DeleteTagRequest { string id = 1; }

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

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

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

0 comments on commit 7fa2201

Please sign in to comment.