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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to