syntax = "proto3"; package catalog; import "model.proto"; import "request.proto"; service CatalogService { rpc create (CatalogRequest) returns (CatalogResponse); rpc read (CatalogIdRequest) returns (CatalogResponse); rpc update (CatalogRequest) returns (CatalogResponse); rpc delete (CatalogIdRequest) returns (CatalogResponse); rpc listAll (request.NoArgsRequest) returns (CatalogListResponse); rpc listByDomain (CatalogListByDomainRequest) returns (CatalogListResponse); } message CatalogRequest { model.Catalog catalog = 1; } message CatalogIdRequest { string id = 1; } message CatalogResponse { string status = 1; string message = 2; model.Catalog catalog = 3; } message CatalogListResponse { string status = 1; string message = 2; repeated model.Catalog catalog = 3; } message CatalogListByDomainRequest { string domain = 1; }