AspNetCore.Docs/aspnetcore/grpc/json-transcoding-binding/requestbody.proto

19 lines
349 B
Protocol Buffer

service Address {
rpc AddAddress (AddAddressRequest) returns (AddAddressReply) {
option (google.api.http) = {
post: "/{apiVersion}/address",
body: "address"
};
}
}
message AddAddressRequest {
int32 api_version = 1;
Address address = 2;
}
message Address {
string street = 1;
string city = 2;
string country = 3;
}