Skip to content

Commit

Permalink
docs(workflow): fix apisix http port (apache#10974)
Browse files Browse the repository at this point in the history
  • Loading branch information
zll600 authored Feb 28, 2024
1 parent 18bf7ae commit c9a6139
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions docs/en/latest/plugins/workflow.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,24 +126,24 @@ HTTP/1.1 403 Forbidden
**Example 2: if the request uri is `/hello/v2/appid`, the `workflow` plugin would execute the `limit-count` plugin**

```shell
curl http://127.0.0.1:0080/hello/v2/appid -i
curl http://127.0.0.1:9080/hello/v2/appid -i
HTTP/1.1 200 OK
```

```shell
curl http://127.0.0.1:0080/hello/v2/appid -i
curl http://127.0.0.1:9080/hello/v2/appid -i
HTTP/1.1 200 OK
```

```shell
curl http://127.0.0.1:0080/hello/v2/appid -i
curl http://127.0.0.1:9080/hello/v2/appid -i
HTTP/1.1 429 Too Many Requests
```

**Example 3: if the request can not match any `case` in the `rules`, the `workflow` plugin would do nothing**

```shell
curl http://127.0.0.1:0080/hello/fake -i
curl http://127.0.0.1:9080/hello/fake -i
HTTP/1.1 200 OK
```

Expand Down
6 changes: 3 additions & 3 deletions docs/zh/latest/plugins/workflow.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,17 +126,17 @@ HTTP/1.1 403 Forbidden
**示例 2: 如果请求的 uri 是 `/hello/v2/appid`,则执行 `limit-count` 插件,限制请求的数量为 2,时间窗口为 60 秒,如果超过限制数量,则返回给客户端状态码 `429`**

```shell
curl http://127.0.0.1:0080/hello/v2/appid -i
curl http://127.0.0.1:9080/hello/v2/appid -i
HTTP/1.1 200 OK
```

```shell
curl http://127.0.0.1:0080/hello/v2/appid -i
curl http://127.0.0.1:9080/hello/v2/appid -i
HTTP/1.1 200 OK
```

```shell
curl http://127.0.0.1:0080/hello/v2/appid -i
curl http://127.0.0.1:9080/hello/v2/appid -i
HTTP/1.1 429 Too Many Requests
```

Expand Down

0 comments on commit c9a6139

Please sign in to comment.