Skip to content

Commit

Permalink
doc: fix formatting (apache#2210)
Browse files Browse the repository at this point in the history
  • Loading branch information
agile6v authored Sep 14, 2020
1 parent 98da870 commit 4b756ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion doc/architecture-design.md
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,7 @@ HTTP/1.1 503 Service Temporarily Unavailable

Use the [consumer-restriction](plugins/consumer-restriction.md) plug-in to restrict the access of Jack to this API.

```shell
# Add Jack to the blacklist
$ curl http://127.0.0.1:9080/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
{
Expand Down Expand Up @@ -615,7 +616,7 @@ curl -X PUT \
}'
```

Now, the `limit-count` plugin will work on all requets
Now, the `limit-count` plugin will work on all requests

we can list all `GlobalRule` via admin api as below:

Expand Down
4 changes: 2 additions & 2 deletions doc/zh-cn/architecture-design.md
Original file line number Diff line number Diff line change
Expand Up @@ -579,9 +579,9 @@ HTTP/1.1 503 Service Temporarily Unavailable

结合 [consumer-restriction](plugins/consumer-restriction.md) 插件,限制jack对该 route 的访问

```shell
# 设置黑名单,禁止jack访问该API

```shell
$ curl http://127.0.0.1:9080/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
{
"plugins": {
Expand Down Expand Up @@ -613,7 +613,7 @@ HTTP/1.1 403
## Global Rule

[Plugin](#Plugin) 只能绑定在 [Service](#Service) 或者 [Route](#Route) 上,如果我们需要一个能作用于所有请求的 [Plugin](#Plugin) 该怎么办呢?
这时候我们可以使用 `GlobalRule` 来注册一个全局的 [Plugin](#Plugin):
这时候我们可以使用 `GlobalRule` 来注册一个全局的 [Plugin](#Plugin):

```shell
curl -X PUT \
Expand Down

0 comments on commit 4b756ec

Please sign in to comment.