Skip to content

Commit 6e17320

Browse files
WangXin3wangxin
and
wangxin
authored
docs: fix the credentials api address error in the example (#12113)
Co-authored-by: wangxin <[email protected]>
1 parent 090b020 commit 6e17320

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/en/latest/terminology/credential.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ admin_key=$(yq '.deployment.admin.admin_key[0].key' conf/config.yaml | sed 's/"/
7979
2. Create 2 `key-auth` Credentials for the Consumer.
8080

8181
```shell
82-
curl http://127.0.0.1:9180/apisix/admin/consumers/jack/key-auth-one \
82+
curl http://127.0.0.1:9180/apisix/admin/consumers/jack/credentials/key-auth-one \
8383
-H "X-API-KEY: $admin_key" -X PUT -d '
8484
{
8585
"plugins": {
@@ -91,7 +91,7 @@ admin_key=$(yq '.deployment.admin.admin_key[0].key' conf/config.yaml | sed 's/"/
9191
```
9292

9393
```shell
94-
curl http://127.0.0.1:9180/apisix/admin/consumers/jack/key-auth-two \
94+
curl http://127.0.0.1:9180/apisix/admin/consumers/jack/credentials/key-auth-two \
9595
-H "X-API-KEY: $admin_key" -X PUT -d '
9696
{
9797
"plugins": {

docs/zh/latest/terminology/credential.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ admin_key=$(yq '.deployment.admin.admin_key[0].key' conf/config.yaml | sed 's/"/
8080
2. 为 Consumer 配置 2 个 启用 `key-auth` 的 Credential。
8181

8282
```shell
83-
curl http://127.0.0.1:9180/apisix/admin/consumers/jack/key-auth-one \
83+
curl http://127.0.0.1:9180/apisix/admin/consumers/jack/credentials/key-auth-one \
8484
-H "X-API-KEY: $admin_key" -X PUT -d '
8585
{
8686
"plugins": {
@@ -92,7 +92,7 @@ admin_key=$(yq '.deployment.admin.admin_key[0].key' conf/config.yaml | sed 's/"/
9292
```
9393

9494
```shell
95-
curl http://127.0.0.1:9180/apisix/admin/consumers/jack/key-auth-two \
95+
curl http://127.0.0.1:9180/apisix/admin/consumers/jack/credentials/key-auth-two \
9696
-H "X-API-KEY: $admin_key" -X PUT -d '
9797
{
9898
"plugins": {

0 commit comments

Comments
 (0)