grpc-api-gateway defines two different google.protobuf.MethodOptions extensions. ProtoEndpointBindings looks like a type which is to be used in a similar way to google.api.HttpRule:
|
// ID assigned by protobuf-global-extension-registry@google.com for gRPC-Gateway project. |
|
ProtoEndpointBinding http = 1190; |
And the field names look very similar.
Supporting google.api.HttpRule would mean an existing application can more easily migrate to grpc-api-gateway for unary-unary RPCs, or use its protoc-gen-openapiv3 in conjunction with another request transcoder.
Though, this wouldn’t work for streaming RPCs.
grpc-api-gatewaydefines two differentgoogle.protobuf.MethodOptionsextensions.ProtoEndpointBindingslooks like a type which is to be used in a similar way togoogle.api.HttpRule:grpc-api-gateway/api/meshapi/gateway/annotations.proto
Lines 24 to 25 in 076dc47
And the field names look very similar.
Supporting
google.api.HttpRulewould mean an existing application can more easily migrate togrpc-api-gatewayfor unary-unary RPCs, or use itsprotoc-gen-openapiv3in conjunction with another request transcoder.Though, this wouldn’t work for streaming RPCs.