bzp2010 commented on a change in pull request #6318:
URL: https://github.com/apache/apisix/pull/6318#discussion_r810732274



##########
File path: docs/zh/latest/plugins/batch-requests.md
##########
@@ -122,23 +122,35 @@ curl 
http://127.0.0.1:9080/apisix/admin/plugin_metadata/batch-requests -H 'X-API
 
 ## 如何修改自定义 uri
 
-我们可以在 `conf/config.yaml` 的 `plugin_attr` 配置项中修改默认的 `uri`
+我们可以使用 [public-api](../../../en/latest/plugins/public-api.md) 插件轻易的设置自定义 
uri。只需要在创建路由时设置需要的 uri 并改变 `public-api` 插件的配置即可。
 
-| 名称       | 类型   | 必选项        | 默认值                       | 描述           |
-| --------- | ------ | ------ | ---------------------------- | -------------- |
-| uri       | string |  可选  |"/apisix/batch-requests"     | `batch-requests` 
插件的自定义 uri    |
-
-配置示例:
-
-```yaml
-plugin_attr:
-  batch-requests:
-    uri: "/api-gw/batch"
+```shell
+$ curl http://127.0.0.1:9080/apisix/admin/routes/br -H 'X-API-KEY: 
edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
+{
+    "uri": "/batch-requests",
+    "plugins": {
+        "public-api": {
+            "uri": "/apisix/batch-requests"
+        }
+    }
+}'
 ```
 
 ## 测试插件
 
-你可以将要访问的请求信息传到网关的批量请求接口( `/apisix/batch-requests` ),网关会以 [http 
pipeline](https://en.wikipedia.org/wiki/HTTP_pipelining) 的方式自动帮你完成请求。
+首先,你需要为 batch request 的 API 设置一个路由,它将使用 [public-api](public-api.md) 插件。

Review comment:
       broken link fixed




-- 
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