Default to gRPC path if no mapping is provided
- Dominant language
- Go
- Stars
- 2.3k
- Forks
- 279
- PR merge metrics
- No merged PRs in 30d
Description
I am using protoc-gen-openapi to generate api docs. The project is being built using connectrpc which uses `GRPC_SERVICE_FULL_NAME/METHOD_NAME` for paths.
We are currently adding this manually for each method, ie.
```proto
service MyService {
rpc Foo(FooRequest) returns (FooResponse) {
option (google.api.http) = {
post: "/my.package.v1.MyService/Foo"
body: "*"
};
}
}
```
Is there an existing way to use the GRPC_SERVICE_FULL_NAME/METHOD_NAME as a default? If not is that something you would consider adding? There is some precedence for this usage in Cloud Endpoints transcoding https://cloud.google.com/endpoints/docs/grpc/transcoding#where_to_configure_transcoding
Contributor guide
Assessment
This issue has not been assessed yet.