-
Notifications
You must be signed in to change notification settings - Fork 0
/
todolist.proto
46 lines (36 loc) · 846 Bytes
/
todolist.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
syntax = "proto3";
import "google/protobuf/empty.proto";
package todolist;
service Service {
rpc AddTask (AddTaskRequest) returns (Task) {}
rpc GetTasks (GetTasksRequest) returns (Tasks) {}
rpc UpdateTask (UpdateTaskRequest) returns (Task) {}
rpc DeleteTask (DeleteTaskRequest) returns (DeleteResult) {}
}
message AddTaskRequest {
string storyId = 1;
string description = 2;
}
message GetTasksRequest {
string storyId = 1;
}
message UpdateTaskRequest {
string taskId = 1;
string description = 2;
bool finished = 3;
}
message DeleteTaskRequest {
string taskId = 1;
}
message Task {
string storyId = 1;
string taskId = 2;
string description = 3;
bool finished = 4;
}
message Tasks {
repeated Task tasks = 1;
}
message DeleteResult {
bool success = 1;
}