From 7fa22014a5615a5173d1aba147817289440466e0 Mon Sep 17 00:00:00 2001 From: kevin Date: Fri, 17 May 2019 10:57:16 +0200 Subject: [PATCH] spec tags service will close #6 --- protos/services/tags_service.proto | 35 ++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 protos/services/tags_service.proto diff --git a/protos/services/tags_service.proto b/protos/services/tags_service.proto new file mode 100644 index 0000000..6db0b9b --- /dev/null +++ b/protos/services/tags_service.proto @@ -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); +} \ No newline at end of file