You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "moecasts (via GitHub)" <gi...@apache.org> on 2023/10/02 09:52:12 UTC
Re: [I] feat: As a user, I want to make grpc-transcode work with radixtree_uri_with_parameter, so that I can define the route with path parameters [apisix]
moecasts commented on issue #10285:
URL: https://github.com/apache/apisix/issues/10285#issuecomment-1742720925
> @moecasts If you're proposing a feature request, can you elaborate with examples? You want to use the values of path parameters as input of the gRPC request instead of query parameters?
e.g:
I have define a route like: `GET /hello/:name`。
and, I have a proto like:
```
syntax = "proto3";
package helloworld;
service Greeter {
rpc SayHello (HelloRequest) returns (HelloReply) {}
}
message HelloRequest {
string name = 1;
}
message HelloReply {
string message = 1;
}
```
now, when I query the route: `/hello/tom`, the server should get the name: tom。
maybe, grpc-transcode's configuration should add a field `args` like:
```
`args`: {
'name‘: ’arg_name'
},
```
and: `arg_name` from the ngx build-in args.
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org