-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from rushio-consulting/spec-tags-service
spec tags service
- Loading branch information
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} |