dubbo icon indicating copy to clipboard operation
dubbo copied to clipboard

triple+rest support custom uri like "proto annotations"

Open huntkalio opened this issue 1 year ago • 4 comments

I use curl to send rest request in triple port ,the command like

curl http:/xxxxxxx/org.apache.dubbo.samples.tri.grpc.Greeter/greet  -H "Content-Type: application/json" -X POST -d '{"name":"test"}'

But I can't change the uri, can dubbo support change the uri.May like this: https://cloud.google.com/endpoints/docs/grpc/transcoding, use "proto annotations" .

So the dubbo framework user can custom the uri.

huntkalio avatar Nov 15 '23 13:11 huntkalio

@icodening @EarthChen @suncairong163 PTAL

We can support this feature when merging rest protocol into triple protocol.

AlbumenJ avatar Nov 16 '23 03:11 AlbumenJ

@xiaoyuuuuuupeng

EarthChen avatar Nov 16 '23 04:11 EarthChen

ok will try it

xiaoyuuuuuupeng avatar Nov 16 '23 05:11 xiaoyuuuuuupeng