This is an automated email from the ASF dual-hosted git repository.

baoyuan 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 6e17320b7 docs: fix the credentials api address error in the example 
(#12113)
6e17320b7 is described below

commit 6e17320b7934767e2a09095d17a38e509a6dac8a
Author: 沉淀 <[email protected]>
AuthorDate: Wed Apr 2 17:50:01 2025 +0800

    docs: fix the credentials api address error in the example (#12113)
    
    Co-authored-by: wangxin <[email protected]>
---
 docs/en/latest/terminology/credential.md | 4 ++--
 docs/zh/latest/terminology/credential.md | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/docs/en/latest/terminology/credential.md 
b/docs/en/latest/terminology/credential.md
index 21b263f38..d8a5ab57e 100644
--- a/docs/en/latest/terminology/credential.md
+++ b/docs/en/latest/terminology/credential.md
@@ -79,7 +79,7 @@ admin_key=$(yq '.deployment.admin.admin_key[0].key' 
conf/config.yaml | sed 's/"/
 2. Create 2 `key-auth` Credentials for the Consumer.
 
     ```shell
-    curl http://127.0.0.1:9180/apisix/admin/consumers/jack/key-auth-one \
+    curl 
http://127.0.0.1:9180/apisix/admin/consumers/jack/credentials/key-auth-one \
     -H "X-API-KEY: $admin_key" -X PUT -d '
     {
         "plugins": {
@@ -91,7 +91,7 @@ admin_key=$(yq '.deployment.admin.admin_key[0].key' 
conf/config.yaml | sed 's/"/
     ```
 
     ```shell
-    curl http://127.0.0.1:9180/apisix/admin/consumers/jack/key-auth-two \
+    curl 
http://127.0.0.1:9180/apisix/admin/consumers/jack/credentials/key-auth-two \
     -H "X-API-KEY: $admin_key" -X PUT -d '
     {
         "plugins": {
diff --git a/docs/zh/latest/terminology/credential.md 
b/docs/zh/latest/terminology/credential.md
index 48ba4ff18..e7b39ecd6 100644
--- a/docs/zh/latest/terminology/credential.md
+++ b/docs/zh/latest/terminology/credential.md
@@ -80,7 +80,7 @@ admin_key=$(yq '.deployment.admin.admin_key[0].key' 
conf/config.yaml | sed 's/"/
 2. 为 Consumer 配置 2 个 启用 `key-auth` 的 Credential。
 
     ```shell
-    curl http://127.0.0.1:9180/apisix/admin/consumers/jack/key-auth-one \
+    curl 
http://127.0.0.1:9180/apisix/admin/consumers/jack/credentials/key-auth-one \
     -H "X-API-KEY: $admin_key" -X PUT -d '
     {
         "plugins": {
@@ -92,7 +92,7 @@ admin_key=$(yq '.deployment.admin.admin_key[0].key' 
conf/config.yaml | sed 's/"/
     ```
 
     ```shell
-    curl http://127.0.0.1:9180/apisix/admin/consumers/jack/key-auth-two \
+    curl 
http://127.0.0.1:9180/apisix/admin/consumers/jack/credentials/key-auth-two \
     -H "X-API-KEY: $admin_key" -X PUT -d '
     {
         "plugins": {

Reply via email to