syntax = "proto3"; package domain; import "model.proto"; import "request.proto"; service DomainService { rpc create (DomainRequest) returns (DomainResponse); rpc read (DomainIdRequest) returns (DomainResponse); rpc update (DomainRequest) returns (DomainResponse); rpc delete (DomainIdRequest) returns (DomainResponse); rpc listAll (request.NoArgsRequest) returns (DomainListResponse); } message DomainRequest { model.Domain domain = 1; } message DomainIdRequest { string id = 1; } message DomainResponse { string status = 1; string message = 2; model.Domain domain = 3; } message DomainListResponse { string status = 1; string message = 2; repeated model.Domain domain = 3; }