Skip to content

Commit

Permalink
docs: fix global-rule.md wrong curl address (#8793)
Browse files Browse the repository at this point in the history
  • Loading branch information
LiteSun authored Feb 7, 2023
1 parent d019da0 commit 5984321
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/en/latest/terminology/global-rule.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ The example below shows how you can use the `limit-count` Plugin on all requests

```shell
curl -X PUT \
https://{apisix_listen_address}/apisix/admin/global_rules/1 \
http://{apisix_listen_address}/apisix/admin/global_rules/1 \
-H 'Content-Type: application/json' \
-H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' \
-d '{
Expand All @@ -57,5 +57,5 @@ curl -X PUT \
You can also list all the Global rules by making this request with the Admin API:

```shell
curl https://{apisix_listen_address}/apisix/admin/global_rules
curl http://{apisix_listen_address}/apisix/admin/global_rules -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1'
```
4 changes: 2 additions & 2 deletions docs/zh/latest/terminology/global-rule.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ description: 本文介绍了全局规则的概念以及如何启用全局规则
以下示例展示了如何为所有请求启用 `limit-count` 插件:

```shell
curl https://127.0.0.1:9180/apisix/admin/global_rules/1 -X PUT \
curl http://127.0.0.1:9180/apisix/admin/global_rules/1 -X PUT \
-H 'Content-Type: application/json' \
-H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' \
-d '{
Expand All @@ -59,5 +59,5 @@ curl https://127.0.0.1:9180/apisix/admin/global_rules/1 -X PUT \
你也可以通过以下命令查看所有的全局规则:

```shell
curl https://127.0.0.1:9180/apisix/admin/global_rules -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1'
curl http://127.0.0.1:9180/apisix/admin/global_rules -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1'
```

0 comments on commit 5984321

Please sign in to comment.