ThalysonR commented on issue #8986:
URL: https://github.com/apache/apisix/issues/8986#issuecomment-1498530954
I was looking around for documentation on this exactly and stumbled upon
this issue. Since there's still no documentation on it, I decided to check the
code and came up with this:
```
routes:
- id: grpc_demo
uri: /grpctest
plugins:
grpc-transcode:
proto_id: helloworld
service: helloworld.Greeter
method: SayHello
upstream:
scheme: grpc
type: roundrobin
nodes:
"grpc-demo:50051": 1
protos:
- id: helloworld
desc: hello world
content: >
syntax = "proto3";
package helloworld;
service Greeter {
rpc SayHello (HelloRequest) returns (HelloReply) {}
}
message HelloRequest {
string name = 1;
}
message HelloReply {
string message = 1;
}
```
For some reason, using numbers as plugin_id didn't work for me btw
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]