Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: fix global-rule.md wrong curl address #8793

Merged
merged 1 commit into from
Feb 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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'
```