syntax = "proto3"; package crabs.crm; import "google/api/annotations.proto"; option go_package = "pkg/crm"; service CRM { rpc GetCatalog(GetCatalogReq) returns (CatalogRsp) { option (google.api.http) = { get: "/catalog" }; } } message GetCatalogReq {} message CatalogRsp { message Category { int64 id = 1; string name = 2; string uri = 3; repeated Category children = 4; } repeated Category categories = 1; }