You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by me...@apache.org on 2020/07/06 01:54:31 UTC
[incubator-apisix] branch master updated: doc: fixed some
punctuation error in the document sample shell (#1803)
This is an automated email from the ASF dual-hosted git repository.
membphis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-apisix.git
The following commit(s) were added to refs/heads/master by this push:
new 8494506 doc: fixed some punctuation error in the document sample shell (#1803)
8494506 is described below
commit 8494506767d184686f87558950302adc2322b12a
Author: YuanYingdong <19...@qq.com>
AuthorDate: Mon Jul 6 09:54:23 2020 +0800
doc: fixed some punctuation error in the document sample shell (#1803)
---
doc/architecture-design.md | 4 ++--
doc/zh-cn/architecture-design.md | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/doc/architecture-design.md b/doc/architecture-design.md
index bda8528..098808e 100644
--- a/doc/architecture-design.md
+++ b/doc/architecture-design.md
@@ -351,7 +351,7 @@ Here are some examples of configurations using different `hash_on` types:
Create a consumer object:
```shell
-curl http://127.0.0.1:9080/apisix/admin/consumers -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d `
+curl http://127.0.0.1:9080/apisix/admin/consumers -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
{
"username": "jack",
"plugins": {
@@ -359,7 +359,7 @@ curl http://127.0.0.1:9080/apisix/admin/consumers -H 'X-API-KEY: edd1c9f034335f1
"key": "auth-jack"
}
}
-}`
+}'
```
Create route object and enable `key-auth` plugin authentication:
diff --git a/doc/zh-cn/architecture-design.md b/doc/zh-cn/architecture-design.md
index b91cfed..a9f6684 100644
--- a/doc/zh-cn/architecture-design.md
+++ b/doc/zh-cn/architecture-design.md
@@ -362,7 +362,7 @@ curl http://127.0.0.1:9080/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f13
创建一个consumer对象:
```shell
-curl http://127.0.0.1:9080/apisix/admin/consumers -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d `
+curl http://127.0.0.1:9080/apisix/admin/consumers -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
{
"username": "jack",
"plugins": {
@@ -370,7 +370,7 @@ curl http://127.0.0.1:9080/apisix/admin/consumers -H 'X-API-KEY: edd1c9f034335f1
"key": "auth-jack"
}
}
-}`
+}'
```
新建路由,打开`key-auth`插件认证,`upstream`的`hash_on`类型为`consumer`: