diff --git a/protos/models/tag.proto b/protos/models/tag.proto new file mode 100644 index 0000000..576ee29 --- /dev/null +++ b/protos/models/tag.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +package stashall; + +message Tag { + string id = 1; + string label = 2; + string description = 3; + string color = 4; +} \ No newline at end of file diff --git a/protos/services/tags_service.proto b/protos/services/tags_service.proto new file mode 100644 index 0000000..21fa336 --- /dev/null +++ b/protos/services/tags_service.proto @@ -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); +} \ No newline at end of file