This is an automated email from the ASF dual-hosted git repository.

leslie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git


The following commit(s) were added to refs/heads/master by this push:
     new e8f5c1fe9 docs: fix grpc-transcode.md error (#10059)
e8f5c1fe9 is described below

commit e8f5c1fe98f4869cbf2eea92fad81c4244419757
Author: YuLuo <[email protected]>
AuthorDate: Mon Aug 21 11:03:59 2023 +0800

    docs: fix grpc-transcode.md error (#10059)
---
 docs/en/latest/plugins/grpc-transcode.md | 4 ++--
 docs/zh/latest/plugins/grpc-transcode.md | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/docs/en/latest/plugins/grpc-transcode.md 
b/docs/en/latest/plugins/grpc-transcode.md
index 4a84f2e3c..56680946d 100644
--- a/docs/en/latest/plugins/grpc-transcode.md
+++ b/docs/en/latest/plugins/grpc-transcode.md
@@ -238,7 +238,7 @@ If the gRPC service returns an error, there may be a 
`grpc-status-details-bin` f
 Upload the proto file:
 
 ```shell
-curl http://127.0.0.1:9080/apisix/admin/proto/1 \
+curl http://127.0.0.1:9080/apisix/admin/protos/1 \
 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
 {
     "content" : "syntax = \"proto3\";
@@ -308,7 +308,7 @@ Server: APISIX web server
 Note that there is an undecoded field in the return body. If you need to 
decode the field, you need to add the `message type` of the field in the 
uploaded proto file.
 
 ```shell
-curl http://127.0.0.1:9080/apisix/admin/proto/1 \
+curl http://127.0.0.1:9080/apisix/admin/protos/1 \
 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
 {
     "content" : "syntax = \"proto3\";
diff --git a/docs/zh/latest/plugins/grpc-transcode.md 
b/docs/zh/latest/plugins/grpc-transcode.md
index 1089d8e27..4c03f4cf9 100644
--- a/docs/zh/latest/plugins/grpc-transcode.md
+++ b/docs/zh/latest/plugins/grpc-transcode.md
@@ -239,7 +239,7 @@ Trailer: grpc-message
 上传 proto 文件:
 
 ```shell
-curl http://127.0.0.1:9080/apisix/admin/proto/1 \
+curl http://127.0.0.1:9080/apisix/admin/protos/1 \
 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
 {
     "content" : "syntax = \"proto3\";
@@ -309,7 +309,7 @@ Server: APISIX web server
 注意返回体中还存在未解码的字段,如果需要解码该字段,需要在上传的 proto 文件中加上该字段对应的 `message type`。
 
 ```shell
-curl http://127.0.0.1:9080/apisix/admin/proto/1 \
+curl http://127.0.0.1:9080/apisix/admin/protos/1 \
 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
 {
     "content" : "syntax = \"proto3\";

Reply via email to