23 lines
330 B
Protocol Buffer
23 lines
330 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package task;
|
|
|
|
import "google/protobuf/empty.proto";
|
|
|
|
service TaskService {
|
|
rpc FindAll(google.protobuf.Empty) returns(TaskList);
|
|
rpc FindOne(TaskId) returns(Task);
|
|
}
|
|
|
|
message TaskId {
|
|
int32 id = 1;
|
|
}
|
|
|
|
message TaskList {
|
|
repeated Task tasks = 1;
|
|
}
|
|
|
|
message Task {
|
|
int32 id = 1;
|
|
string title = 2;
|
|
} |