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: protect-api.md typo, remove redundant braces. #8139

Merged
merged 2 commits into from
Oct 25, 2022
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
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