contracts/proto/category.proto

20 lines
341 B
Protocol Buffer

syntax = "proto3";
import "google/protobuf/empty.proto"
package category.v1;
service CategoryService {
rpc GetAllCategories (google.protobuf.Empty) returns GetAllCategoriesResponse;
}
message GetAllCategoriesResponse {
repeated Category categories = 1;
}
message Category {
string id = 1;
string title = 2;
string slug = 3;
}