Skip to content

Commit

Permalink
docs: protect-api.md typo, remove redundant braces. (apache#8139)
Browse files Browse the repository at this point in the history
* docs: update protect-api.md
remove redundant braces.

* update plugin-config.md upstream.md typo fix.
  • Loading branch information
ZonePG authored and Liu-Junlin committed Nov 4, 2022
1 parent 384e7a3 commit 3f59305
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 20 deletions.
6 changes: 3 additions & 3 deletions docs/en/latest/terminology/plugin-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ For example, if we configure a Plugin Config as shown below
"rejected_code": 503
}
}
}
}'
```

to a Route as shown below,
Expand All @@ -107,7 +107,7 @@ to a Route as shown below,
"key": "remote_addr"
}
}
}
}'
```

the effective configuration will be as the one shown below:
Expand Down Expand Up @@ -138,5 +138,5 @@ the effective configuration will be as the one shown below:
"rejected_code": 503
}
}
}
}'
```
12 changes: 6 additions & 6 deletions docs/en/latest/terminology/upstream.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,9 @@ curl http://127.0.0.1:9180/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f13
"uri": "/hash_on_cookie",
"upstream": {
"key": "sid",
"type ": "chash",
"hash_on ": "cookie",
"nodes ": {
"type": "chash",
"hash_on": "cookie",
"nodes": {
"127.0.0.1:1980": 1,
"127.0.0.1:1981": 1
}
Expand All @@ -206,9 +206,9 @@ curl http://127.0.0.1:9180/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f13
"uri": "/hash_on_header",
"upstream": {
"key": "content-type",
"type ": "chash",
"hash_on ": "header",
"nodes ": {
"type": "chash",
"hash_on": "header",
"nodes": {
"127.0.0.1:1980": 1,
"127.0.0.1:1981": 1
}
Expand Down
1 change: 0 additions & 1 deletion docs/en/latest/tutorials/protect-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ curl -i http://127.0.0.1:9180/apisix/admin/routes/1 \
}
},
"upstream_id": "1"
}
}'
```

Expand Down
6 changes: 3 additions & 3 deletions docs/zh/latest/terminology/plugin-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ curl http://127.0.0.1:9180/apisix/admin/plugin_configs/1 \
"rejected_code": 503
}
}
}
}'
```

在路由中引入 Plugin Config:
Expand Down Expand Up @@ -125,7 +125,7 @@ curl http://127.0.0.1:9180/apisix/admin/routes/1 \
"key": "remote_addr"
}
}
}
}'
```

最后实现的效果如下:
Expand Down Expand Up @@ -159,5 +159,5 @@ curl http://127.0.0.1:9180/apisix/admin/routes/1 \
"key": "remote_addr"
}
}
}
}'
```
12 changes: 6 additions & 6 deletions docs/zh/latest/terminology/upstream.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,9 @@ curl http://127.0.0.1:9180/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f13
"uri": "/hash_on_cookie",
"upstream": {
"key": "sid",
"type ": "chash",
"hash_on ": "cookie",
"nodes ": {
"type": "chash",
"hash_on": "cookie",
"nodes": {
"127.0.0.1:1980": 1,
"127.0.0.1:1981": 1
}
Expand All @@ -200,9 +200,9 @@ curl http://127.0.0.1:9180/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f13
"uri": "/hash_on_header",
"upstream": {
"key": "content-type",
"type ": "chash",
"hash_on ": "header",
"nodes ": {
"type": "chash",
"hash_on": "header",
"nodes": {
"127.0.0.1:1980": 1,
"127.0.0.1:1981": 1
}
Expand Down
1 change: 0 additions & 1 deletion docs/zh/latest/tutorials/protect-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ curl -i http://127.0.0.1:9180/apisix/admin/routes/1 \
}
},
"upstream_id": "1"
}
}'

```
Expand Down

0 comments on commit 3f59305

Please sign in to comment.