You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, I'm mounting the entire gRPC gateway on a prefixed router: /grpc/*, so that I access the above endpoint at /grpc/myservice. In the generated swagger jsons, the prefix /grpc/* does not appear.
I can of course, in the protobuf annotations, add option (google.api.http).get = "/grpc/myservice", but since I have 100+ services, I was wondering if there was an option in protoc-gen-swagger to add a prefix to all paths.
The text was updated successfully, but these errors were encountered:
🚀 Feature
I have the following simple service
However, I'm mounting the entire gRPC gateway on a prefixed router:
/grpc/*
, so that I access the above endpoint at/grpc/myservice
. In the generated swagger jsons, the prefix/grpc/*
does not appear.I can of course, in the protobuf annotations, add
option (google.api.http).get = "/grpc/myservice"
, but since I have 100+ services, I was wondering if there was an option inprotoc-gen-swagger
to add a prefix to all paths.The text was updated successfully, but these errors were encountered: