You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by sy...@apache.org on 2022/10/25 01:47:51 UTC
[apisix] branch master updated: docs: protect-api.md typo, remove redundant braces. (#8139)
This is an automated email from the ASF dual-hosted git repository.
sylviasu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git
The following commit(s) were added to refs/heads/master by this push:
new 427a9b9f1 docs: protect-api.md typo, remove redundant braces. (#8139)
427a9b9f1 is described below
commit 427a9b9f11226cd079e4b58ee7aca3ece467a9a5
Author: ZONEPG <zo...@gmail.com>
AuthorDate: Tue Oct 25 09:47:44 2022 +0800
docs: protect-api.md typo, remove redundant braces. (#8139)
* docs: update protect-api.md
remove redundant braces.
* update plugin-config.md upstream.md typo fix.
---
docs/en/latest/terminology/plugin-config.md | 6 +++---
docs/en/latest/terminology/upstream.md | 12 ++++++------
docs/en/latest/tutorials/protect-api.md | 1 -
docs/zh/latest/terminology/plugin-config.md | 6 +++---
docs/zh/latest/terminology/upstream.md | 12 ++++++------
docs/zh/latest/tutorials/protect-api.md | 1 -
6 files changed, 18 insertions(+), 20 deletions(-)
diff --git a/docs/en/latest/terminology/plugin-config.md b/docs/en/latest/terminology/plugin-config.md
index a544312ad..ce73ce172 100644
--- a/docs/en/latest/terminology/plugin-config.md
+++ b/docs/en/latest/terminology/plugin-config.md
@@ -80,7 +80,7 @@ For example, if we configure a Plugin Config as shown below
"rejected_code": 503
}
}
-}
+}'
```
to a Route as shown below,
@@ -107,7 +107,7 @@ to a Route as shown below,
"key": "remote_addr"
}
}
-}
+}'
```
the effective configuration will be as the one shown below:
@@ -138,5 +138,5 @@ the effective configuration will be as the one shown below:
"rejected_code": 503
}
}
-}
+}'
```
diff --git a/docs/en/latest/terminology/upstream.md b/docs/en/latest/terminology/upstream.md
index f9d539c16..20101552b 100644
--- a/docs/en/latest/terminology/upstream.md
+++ b/docs/en/latest/terminology/upstream.md
@@ -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
}
@@ -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
}
diff --git a/docs/en/latest/tutorials/protect-api.md b/docs/en/latest/tutorials/protect-api.md
index dd0d67e15..a89e5103a 100644
--- a/docs/en/latest/tutorials/protect-api.md
+++ b/docs/en/latest/tutorials/protect-api.md
@@ -80,7 +80,6 @@ curl -i http://127.0.0.1:9180/apisix/admin/routes/1 \
}
},
"upstream_id": "1"
- }
}'
```
diff --git a/docs/zh/latest/terminology/plugin-config.md b/docs/zh/latest/terminology/plugin-config.md
index 599b88078..e7132c635 100644
--- a/docs/zh/latest/terminology/plugin-config.md
+++ b/docs/zh/latest/terminology/plugin-config.md
@@ -96,7 +96,7 @@ curl http://127.0.0.1:9180/apisix/admin/plugin_configs/1 \
"rejected_code": 503
}
}
-}
+}'
```
在路由中引入 Plugin Config:
@@ -125,7 +125,7 @@ curl http://127.0.0.1:9180/apisix/admin/routes/1 \
"key": "remote_addr"
}
}
-}
+}'
```
最后实现的效果如下:
@@ -159,5 +159,5 @@ curl http://127.0.0.1:9180/apisix/admin/routes/1 \
"key": "remote_addr"
}
}
-}
+}'
```
diff --git a/docs/zh/latest/terminology/upstream.md b/docs/zh/latest/terminology/upstream.md
index 7905bab63..88bc251a1 100644
--- a/docs/zh/latest/terminology/upstream.md
+++ b/docs/zh/latest/terminology/upstream.md
@@ -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
}
@@ -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
}
diff --git a/docs/zh/latest/tutorials/protect-api.md b/docs/zh/latest/tutorials/protect-api.md
index 6e259b7ae..bdcc8a056 100644
--- a/docs/zh/latest/tutorials/protect-api.md
+++ b/docs/zh/latest/tutorials/protect-api.md
@@ -82,7 +82,6 @@ curl -i http://127.0.0.1:9180/apisix/admin/routes/1 \
}
},
"upstream_id": "1"
- }
}'
```