summaryrefslogtreecommitdiffstats
path: root/protos/protos/todo.proto
blob: 9152814751b901c66dac5b3d307e23c0c8870ebf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
syntax = 'proto3';

message Todo {
 int32 id = 1;
 string title = 2;
 bool completed = 3;
}

message GetTodoByIdRequest {
    int32 id = 1;
}
service TodoService {
    rpc getTodo(GetTodoByIdRequest) returns (Todo);
    rpc getTodoStream(GetTodoByIdRequest) returns (stream Todo);
}