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

spacewander 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 1591842  docs: update request-id.md doc (#3713)
1591842 is described below

commit 1591842a0cd0537dd3c73aa97f67618bc7166ed3
Author: Yuelin Zheng <[email protected]>
AuthorDate: Tue Mar 2 18:02:55 2021 +0800

    docs: update request-id.md doc (#3713)
---
 docs/en/latest/plugins/request-id.md | 4 +++-
 docs/zh/latest/plugins/request-id.md | 6 ++++--
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/docs/en/latest/plugins/request-id.md 
b/docs/en/latest/plugins/request-id.md
index a77ddc4..babca3d 100644
--- a/docs/en/latest/plugins/request-id.md
+++ b/docs/en/latest/plugins/request-id.md
@@ -48,7 +48,7 @@ Create a route and enable the request-id plugin on the route:
 ```shell
 curl http://127.0.0.1:9080/apisix/admin/routes/5 -H 'X-API-KEY: 
edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
 {
-    "uri": "/get",
+    "uri": "/hello",
     "plugins": {
         "request-id": {
             "include_in_response": true
@@ -68,6 +68,8 @@ curl http://127.0.0.1:9080/apisix/admin/routes/5 -H 
'X-API-KEY: edd1c9f034335f13
 ```shell
 $ curl -i http://127.0.0.1:9080/hello
 HTTP/1.1 200 OK
+X-Request-Id: fe32076a-d0a5-49a6-a361-6c244c1df956
+......
 ```
 
 ## Disable Plugin
diff --git a/docs/zh/latest/plugins/request-id.md 
b/docs/zh/latest/plugins/request-id.md
index 298006d..cf2373c 100644
--- a/docs/zh/latest/plugins/request-id.md
+++ b/docs/zh/latest/plugins/request-id.md
@@ -31,7 +31,7 @@ title: request-id
 
 ## 名称
 
-`request-id` 插件通过 APISIX 为每一个请求代理添加唯一 ID(UUID),以用于追踪 API 请求。该插件在 `header_name` 
已经在请求中存在时不会为请求添加新的 ID
+`request-id` 插件通过 APISIX 为每一个请求代理添加唯一 ID(UUID),以用于追踪 API 请求。该插件在 `header_name` 
已经在请求中存在时不会为请求添加新的 ID。
 
 ## 属性
 
@@ -47,7 +47,7 @@ title: request-id
 ```shell
 curl http://127.0.0.1:9080/apisix/admin/routes/5 -H 'X-API-KEY: 
edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
 {
-    "uri": "/get",
+    "uri": "/hello",
     "plugins": {
         "request-id": {
             "include_in_response": true
@@ -67,6 +67,8 @@ curl http://127.0.0.1:9080/apisix/admin/routes/5 -H 
'X-API-KEY: edd1c9f034335f13
 ```shell
 $ curl -i http://127.0.0.1:9080/hello
 HTTP/1.1 200 OK
+X-Request-Id: fe32076a-d0a5-49a6-a361-6c244c1df956
+......
 ```
 
 ## 禁用插件

Reply via email to