mirror of
https://github.com/autistic-symposium/backend-and-orchestration-toolkit.git
synced 2025-06-08 06:53:00 -04:00
21 lines
No EOL
365 B
Protocol Buffer
21 lines
No EOL
365 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package todoPackage;
|
|
|
|
service Todo {
|
|
rpc createTodo(TodoItem) returns (TodoItem);
|
|
rpc readTodos(voidNoParam) returns (TodoItems);
|
|
rpc readTodosStream(voidNoParam) returns (stream TodoItem);
|
|
|
|
}
|
|
|
|
message voidNoParam {}
|
|
|
|
message TodoItem {
|
|
int32 id = 1;
|
|
string text = 2;
|
|
}
|
|
|
|
message TodoItems {
|
|
repeated TodoItem items = 1;
|
|
} |