I just want to make sure I understand the spec for gRPC and HTTP gateway 
correctly as I was trying to do have the resource ID replaced in a sub 
message. So this call:

- HTTP: `PATCH /v1/keys/1234`
- gRPC: `patch_key(Data:UpdateKeyRequestData(UpdateKeyId: "123"))`

Is this possible?  As seems that resource IDs have to be mapped to the top 
level message when making calls?

Thanks in advance.

Brad

-----

My code (simplified looks like this):

// Defines the UpdateKeyRequestData message
message UpdateKeyRequestData {
// The key id
string UpdateKeyId = 1;
}

message PatchKeyRequest {
// The data needed to create a Key
UpdateKeyRequestData Data = 1;
}

//
// Patch a key
rpc patch_key(PatchKeyRequest) returns (KeyResponse) {
option (google.api.http) = {
patch: "/v1/keys/{PatchKeyId}"
body: "*"
};
}


-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to grpc-io+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/d7b70ab4-2592-445e-a095-bdb712b3283en%40googlegroups.com.

Reply via email to